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

Custom context menu replaces filter menu

2 Answers 201 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 14 Apr 2010, 04:39 PM
Hello,

if I use a custom context menu it replaces filter custom menu, too. But I want to use default filter menu and custom grid menu togther. In my opinion there should be a distinction between grid context menus.

There should be 4 different context menus:

- row menu
- column header menu
- row header menu
- filter context menu

I use custom context menu to define actions on databound grid item ( open /  copy / delete... )

I use 2009.3.10.108

Regards,

Markus

2 Answers, 1 is accepted

Sort by
0
Markus
Top achievements
Rank 1
answered on 14 Apr 2010, 04:52 PM
Sorry, I took a scond look to the documentation and found "Conditional Custom Context Menus".
There I found the solution. I check type of clicked element:

private void grdMain_ContextMenuOpening(object sender, Telerik.WinControls.UI.ContextMenuOpeningEventArgs e)
        {
            Telerik.WinControls.UI.GridDataCellElement cell = e.ContextMenuProvider as Telerik.WinControls.UI.GridDataCellElement;

            if( cell != null )
                e.ContextMenu = _gridContextMenu.DropDown;
        }
0
Jack
Telerik team
answered on 15 Apr 2010, 09:35 AM
Hello Markus, I am glad to hear that you have found the solution. If you have any other questions, please don't hesitate to contact us.

 

Kind regards,
Jack
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Markus
Top achievements
Rank 1
Answers by
Markus
Top achievements
Rank 1
Jack
Telerik team
Share this question
or