Please consider refactoring Telerik.DataSource to allow for Dynamic Linq expressions rather than fixed Member.
1. You don't have to reinvent the wheel in creating lambda expressions. You can simplify Telerik.DataSource code to just use Dynamic Linq.
2. Allows support for Sorts & Grouping to be expressions such as "Math.Abs(field ?? 0)" rather than just "field".
Hello Enoch,
I have discussed this with our dev team and we decided to not include a third-party library dependency (Dynamic Linq) for all our clients. This library is not distributed by Microsoft so we are not aware of any vulnerabilities/potential bugs or other stability-related issues.
Regards,
Svetoslav Dimitrov
Progress Telerik
Hello Enoch,
We have an open feature request for the ability to add custom sort expressions for data source operations. I believe that this feature request will allow you to achieve the desired behavior.
That being said, I am marking this request as a "Duplicate".
Regards,
Svetoslav Dimitrov
Progress Telerik
I would like to sort a grid column by the absolute value and still use .ToDataSourceResult() because of paging, filtering, etc.
Hello Enoch,
Can you provide some additional information on what you would like to achieve with these dynamic expressions? What is the problem that you need to address with these in the Grid?
I am asking because we are reluctant to provide built-in support (dependency) for a third-party tool.
Regards,
Svetoslav Dimitrov
Progress Telerik