joeharrison714 / MVCGrid.Net

http://mvcgrid.net
MIT License
74 stars 55 forks source link

WithSortColumnData with function mapping #99

Open ocin84 opened 7 years ago

ocin84 commented 7 years ago

Hello,

I have a column with a mapping function in the value expression. I want sort this column with the string return by this function. It's possible ?

cols.Add("Role") .WithFiltering(true) .WithValueExpression(p => GetRoleName(p.Roles.First().RoleId)) .WithSortColumnData(GetRoleName("{Value}"));

Thank you for your help.