ComboBoxExtension.BindList(Object) Method
In This Article
Binds an item list to the ComboBox editor.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public ComboBoxExtension BindList(
object dataObject
)
#Parameters
Name | Type | Description |
---|---|---|
data |
Object | An object representing the bound data source. |
#Returns
Type | Description |
---|---|
Combo |
A Combo |
#Remarks
#Example
@Html.DevExpress().ComboBox(settings => {
settings.Name = "comboBox4";
...
settings.Properties.Columns.Add("ContactName", "ContactName", 130);
settings.Properties.Columns.Add("CompanyName", "CompanyName", Unit.Percentage(100));
settings.Properties.Columns.Add("Country", "Country", 60);
settings.Properties.Columns.Add("Phone", "Phone", 100);
}).BindList(Model).GetHtml()
#Online Demo
See Also