This is a migrated thread and some comments may be shown as answers.

RadGridView - make Filtering and sorting to work reverse.

1 Answer 177 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Naresh
Top achievements
Rank 1
Naresh asked on 12 Apr 2016, 06:24 AM

Hi All,

I am using the RadGridView and added custom filter's successfully, the default sort functionality works when user hits on the header column and filter works when cuser clicks on filter icon. how can i make filter popup to be opened when i click on header column instead of the filter icon and how can i make the default filter to work as sorting.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 14 Apr 2016, 01:00 PM
Hello Naresh,

In order to open the filtering control when the user clicks the column header, you can subscribe to the Sorting event of the control. Within the event handler, you can adopt the approach demonstrated in this help article. You need to also cancel the event, so that the column is not being sorted through the built-in mechanism.

As to your requirement to sort the items when the user clicks the filtering funnel, the event you need to handle is FilterOperatorsLoading. When it is raised, you can set the IsOpened property of the PopUp to false and programmatically sort the items of RadGridView, as demonstrated in this help topic.

Hope this helps.

Best Regards,
Stefan X1
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Naresh
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or