I suggest you ...

Combo box supports multiple columns

@Html.DevExpress().ComboBox(
settings => {
settings.Name = "comboBox4";
settings.Width = 180;
settings.SelectedIndex = 0;
settings.Properties.DropDownWidth = 550;
settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
settings.CallbackRouteValues = new { Controller = "Editors", Action = "MultiColumnComboBoxPartial" };
settings.Properties.CallbackPageSize = 30;
settings.Properties.IncrementalFilteringMode = IncrementalFilteringMode.StartsWith;
settings.Properties.TextFormatString = "{0}";
settings.Properties.ValueField = "CustomerID";
settings.Properties.ValueType = typeof(string);

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(ViewData["Customers"]).GetHtml()

11 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    ghd258ghd258 shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base