Completed
Last Updated: 07 Jun 2021 13:17 by ADMIN
Leo
Created on: 08 Dec 2017 12:52
Category: UI for ASP.NET MVC
Type: Feature Request
1
Support lambda expressions in ComboBox datasource
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"}))
        );
    })
1 comment
ADMIN
Viktor Tachev
Posted on: 07 Jun 2021 13:17

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.