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

RadMenu on RadGrid contextual based on Row

1 Answer 63 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Todd A
Top achievements
Rank 1
Todd A asked on 10 Jun 2010, 01:17 AM
Hello,

I have implemented the RadMenu on a page with a fixed set of 4 menu items. I have followed an example I found where I set the right click and trigger the client side code to show the RadMenu.  This works great -- especially for an Add,Edit,Delete which applies to all rows. 

How do I further customize this to make it row specific. FOr example, for row 1 I might want to show 2 options, versus row 2, 3 options.  depends on the row.  I thought of using the web service, but passing the row is tricky -- or creating a RadMenu per row --- but before I go down either of these paths I wanted to see if I was missing something and there is an easier way.

Thanks,
Todd.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Jun 2010, 01:48 PM
Hello Todd,

Attach OnRowContextMenu client event to RadGrid and access the menu client object in the handler to customize the items.

Here I found a forum which discusses similar scenario.
Context menu Problem

Thanks,
Princy.
Tags
Menu
Asked by
Todd A
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or