Pending Review
Last Updated: 08 Dec 2017 12:53 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"}))
        );
    })
0 comments