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

[Solved] Grid Row ID

1 Answer 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Donald Miller
Top achievements
Rank 1
Donald Miller asked on 22 May 2008, 05:54 PM
I have a page (content within a master) that has a conext menu and a grid on it. The target of the menu is the grid. How do I find the row ID (or index) that was selected when the user clicks an item on the context menu? I want to do this client-side. TIA.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 23 May 2008, 06:14 AM
Hi Donald,

You can determine the row index which has been right-clicked from the second argument (eventArgs) passed in the OnRowContextMenu handler of the grid. Review the resources pointed below for more info on the subject:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Controls/Examples/Integration/GridAndMenu/DefaultCS.aspx?product=grid
http://www.telerik.com/community/code-library/submission/b311D-kmaah.aspx

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Donald Miller
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or