RadGridView - make Filtering and sorting to work reverse.

2 posts, 0 answers
  1. Naresh
    Naresh avatar
    3 posts
    Member since:
    Apr 2016

    Posted 12 Apr 2016 Link to this post

    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.

  2. Stefan
    Stefan avatar
    1073 posts

    Posted 14 Apr 2016 Link to this post

    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
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top