Hello Richard,
Thank you for sharing your solution.
Indeed, you can set the ChipList items based on a Model collection that is available in the View:
@model UserViewModel
@(Html.Kendo().ChipList()
.Name("Passages")
...
.Items(item =>
{
foreach (ChipListDemo.Models.MyModel i in Model.MyList) //Ensure that the name of the variable in the loop is not "item" since "item" is used in the Items() configuration
{
item.Add().Label(i.Title + ' ' + i.SuBtitle);
}
})
)
Regards, Mihaela Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
It is possible to bind to remote data, but indirectly
@(Html.Kendo().ChipList()