@model IEnumerable<InputData.Sale>

@{ 
    IEnumerable<string> countries = ViewBag.Countries;
}

<h1>
    ComboBox
</h1>

<p>
    The ComboBox combines an input element with a drop-down
    list. You can use it to select and/or edit strings or
    objects from lists.
</p>
<p>
    The ComboBox provides as-you-type auto-completion,
    making it easy to find items in long lists.
</p>
<p>
    For example, the combo boxes below allow you to
    select from lists of strings and objects:
</p>
<label for="theComboString">Strings:</label>
@Html.C1().ComboBox().Id("theComboString").Bind(countries)
<p>
    The current value is: <b id="theComboStringCurrent"></b>.
</p>
<label for="theComboObject">Objects:</label>
@(Html.C1().ComboBox<InputData.Sale>().Id("theComboObject").Bind(Model).DisplayMemberPath("Country"))
<p>
    The current value is: <b id="theComboObjectCurrent"></b>.
</p>