You may show a ContextMenu when you click on a RadButton like so:
// create menu
RadContextMenu contextMenu =
// set menu Theme
contextMenu.Opened += OnMenuOpened;
contextMenu.ItemClick += OnMenuItemClick;
Then in the onMenuItemClick event you will need to implement the logic for filtering, grouping and sorting. You may see a sample implementation of this functionality at our online demo about HeaderContextMenu
. All WPF examples are available in our installation files and you can see them working here
. If you download the WPF demos, then just navigate to the GridView/HeaderContextMenu example.
There, in the left section, you will see a sample source code shown under the file GridViewHeaderMenu.cs. If you would like to get the full project then you could find it in the Demos folder inside your package of the RadControls.
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 >>