RadGridView - Clear the Sorting dynamically

1 Answer 268 Views
GridView
Giri
Top achievements
Rank 1
Iron
Giri asked on 05 Apr 2022, 10:38 AM

Hello Team,
We are using the telerik RadGridView in our windows application.  In the grid we are having the header sorting option, after sorting we need to clear the sorting dynamically when click the remove filter icon. Video link mentioned for your reference. Please help us to resolve this issue.

Video link : https://suganya-gmail.tinytake.com/df/1265942/thumbnail?type=attachments&version_no=0&file_version_no=0&thumbnail_size=preview

 

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 05 Apr 2022, 11:15 AM
Hello, Giri,

RadGridView offers the SortDescriptors collection which stores the applied sorting. If you want to remove the applied sorting, feel free to clear the SortDescriptors collections. 
 this.radGridView1.SortDescriptors.Clear();
I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

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/.

Giri
Top achievements
Rank 1
Iron
commented on 05 Apr 2022, 03:57 PM

Hello Dess,

The condition is working good. Thanks for the timely help.

Tags
GridView
Asked by
Giri
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or