Hello,
I would like to ask if it's possible to group DropDownListFor options as it is described in this link (https://demos.telerik.com/aspnet-core/dropdownlist/grouping), but for DropDownListFor?
Thank you.
e.g. How can I group my dropdown options by LineOfBusinessCategory?
@(Html.Kendo().DropDownListFor(m => m.CompanyHasLineofBusiness.LineOfBusinessID)
.DataTextField("LineOfBusinessName")
.DataValueField("LineOfBusinessID")
.FixedGroupTemplate("LineOfBusinessCategory")
.DataSource(source =>
{
source.Custom();
source.ServerFiltering(true);
source.Read(read =>
{
read.Action("LineOfBusinessNameList", "Midas").Type(HttpVerbs.Post);
});
})
.HtmlAttributes(new { style = "width: 100%", @validationMessage = "Mandatory" })
)