The datasource for ComboBox object does not support lambda expressions like ListView (and many other objects). These 'hardcoded' strings are error prone and is causing headaches when altering modelschema's.
DataSource(ds =>
{
ds.Custom()
.Sort(sort => sort.Add("PropertyName").Descending())
.Transport(tr =>
tr.Read(read => read.Action("Action", "Controller"}))
);
})
Hi,
The described functionality is available for the ComboBox component.
https://demos.telerik.com/aspnet-mvc/combobox/custom-datasource
Regards,
Viktor Tachev
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.