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

RadMenu per RadGridView Row?

1 Answer 39 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 30 Sep 2011, 08:07 AM

Hi all,

(I have cross-posted this to the two relevant forums)

Is it possible to have a RadMenu per RadGridView row? I have a Windows explorer-style interface with a tree view on the left and a RadGridView on the right providing a listview style view. The commands for each of my items can vary. In the tree they are data bound to a RadMenu at runtime. Is there a way of doing this per row in a RadGridView?

The only sample I have found shows a menu for the entire grid, not per row.

I have tried per column by putting a menu inside the CellTemplate alongside the other controls but get a memeory vialoation error!

Any tips or tricks would be appreciated.

Cheers,
Chris.

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 03 Oct 2011, 08:43 AM
Hello Chris,

In order to achieve your goal, you need to do the following:
- handle the Opening/Opened event of the GridViewRow.
- check which row is selected and according to your logic you can open or create the menu needed.

Hope this information helps.

Kind regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Menu
Asked by
Chris
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or