I have a GridView with GroupComparer and it works fine, but if I add EnableCustomSorting true, the GroupComparer stops working, it's not called by GridView anymore. Could you please advise how to make it work together.
When you set the EnableCustomSorting property to true, the MasterTemplate.GroupComparer gets reset. That is why the custom comparer is not used. If you want to enable the custom sorting functionality and still keep using the custom group comparer, feel free to set the MasterTemplate.GroupComparer property after setting the EnableCustomSorting property to true:
this.radGridView1.CustomSorting += RadGridView1_CustomSorting;
this.radGridView1.EnableCustomSorting = true;
this.radGridView1.MasterTemplate.GroupComparer = new GroupComparer();
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.