I want to add a custom sort comparer but I don't want to perform the whole sorting manually through the OnRead event.
Please allow adding custom expressions that will be applied to the query that the DataSource package does for easier customizations of the data operations.
Thank you for your feedback, Peter!
I've updated the status of the item.
Regards,
Nadezhda Tacheva
Progress Telerik
Hi Nadezhda,
I put this already on the original ticket.. https://www.telerik.com/account/support-center/view-ticket/1635100
But the gist is to add a "SortComparer" (type: IComparer<TKey>?) property to the GridColumn, and then pass it through to the Telerik class SortDescriptorCollectionExpressionBuilder and pass it in when doing this:
queryable = queryable.Provider.CreateQuery((Expression) Expression.Call(typeof (Queryable), methodName, new Type[2] { queryable.ElementType, lambdaExpression.Body.Type }, queryable.Expression, (Expression) Expression.Quote((Expression) lambdaExpression)));
As an additional parameter which OrderBy, OrderByDescending, ThenBy or ThenByDescending all support.
Your OnRead bit is not appealing to me at all, it gives me a headache to even think through.
-Peter
Hi Peter,
We've discussed the request with the team and we'd like to gather some additional information on the matter. Can you please share your feedback on the below questions? You will greatly help us with the evaluation.
Thank you in advance! I look forward to hearing from you!
Regards,
Nadezhda Tacheva
Progress Telerik