Unplanned
Last Updated: 16 Aug 2022 08:42 by Chris
Chris
Created on: 16 Aug 2022 08:42
Category: DropDownList
Type: Feature Request
0
Add HtmlAttributes option in SelectListItemBuilder class

Can you include the "HtmlAttributes" option in the "SelectListItemBuilder" class?

For example:

@(Html.Kendo().DropDownList()
    .Name("color")
    .Items(items =>
    {
        items.Add().Text("First Item").Value("1").HtmlAttributes(new { ... });
        items.Add().Text("Second Item").Value("2");
    })
)

0 comments