Data from RadGrid will be filtered when Filter RadButton is clicked

4 posts, 0 answers
  1. Yana
    Yana avatar
    32 posts
    Member since:
    Aug 2011

    Posted 22 Aug 2011 Link to this post

    Hi Guys,

    I'd like to know how to show up a context menu on a RadButton, and then the data then will be filtered/grouped/sorted from the RadGrid.

    Here is the context menu that I wanted to have on a RadButton when it is clicked: http://www2.picturepush.com/photo/a/6379460/img/6379460.png
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 23 Aug 2011 Link to this post

    Hi Yana,

    RadGridView already provides a rich UI for sorting, filtering and grouping.

    If you want another custom UI, you have to create the context menu yourself and place any entries that you need in it. The associate it with your button.

    Then with the help of our public API you can programmatically filter, sort and group the grid based on what the user has chosen from the context menu. 

    Here are the topics that describe how to perform these actions programmatically:

    Filtering
    Sorting
    Grouping

    If you want the built-in UI to be aware of your programmatic filtering, sorting and grouping, you have to use the ColumnFilterDescriptor, ColumnSortDescriptor and ColumnGroupDescriptor classes respectively.

    I hope this helps.

    Kind regards,
    Ross
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
  4. Yana
    Yana avatar
    32 posts
    Member since:
    Aug 2011

    Posted 23 Aug 2011 Link to this post

    Can you please attach an example wherein when I click on the RadButton, a context menu appears like Filter, Group, Sort and then there will be changes in the RadGrid? Im quite confused. Thanks
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 24 Aug 2011 Link to this post

    Hello Yana,

    Your requirement is quite peculiar and of course we can't have an example built especially for your case.

    We would be glad to answer any specific questions that you might have, though. 

    Kind regards,
    Ross
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top