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

Data from RadGrid will be filtered when Filter RadButton is clicked

3 Answers 24 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Yana
Top achievements
Rank 1
Yana asked on 23 Aug 2011, 02:52 AM
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

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 23 Aug 2011, 06:41 AM
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 >>

0
Yana
Top achievements
Rank 1
answered on 23 Aug 2011, 03:33 PM
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
0
Rossen Hristov
Telerik team
answered on 24 Aug 2011, 09:34 AM
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 >>

Tags
GridView
Asked by
Yana
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Yana
Top achievements
Rank 1
Share this question
or