Hello,
I would like to know if it is possible to have several grouping parameters in the dropdownlist
I have this class :
Appellation{
public string IdAppellation { get; set; }
public string NameAppellation { get; set; }
public string ColorAppellation { get; set; }
public string CategoryAppellation { get; set; }
}
And I would like to group by category and color like :
- Red - AOP
- White - AOP
- Red - IGP...
I use this code to generate my dropdownlist
@Html.EJS().DropDownList("appellation").DataSource(Model.LineInputViewModel.ListAppellation).Fields(new DropDownListFieldSettings{GroupBy = "CategoryAppellation", Text = "NameAppellation", Value = "IdAppellation" }).Render()
Thank you for your answers