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

Access Underlying grid in RadContextMenu OnItemClick

2 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nacharya
Top achievements
Rank 1
nacharya asked on 28 Sep 2010, 10:31 AM
Hi,

I am using RadGrid in Radtreeview node template. I have attached RadContextMenu to all the grids in treenode. Now how can i get the access of the grid on which contextmenu displayed in OnItemClick event in .cs.


Thanks

2 Answers, 1 is accepted

Sort by
0
nacharya
Top achievements
Rank 1
answered on 30 Sep 2010, 03:14 PM
Do you need more details on this?
0
Veli
Telerik team
answered on 01 Oct 2010, 08:55 AM
Hello nacharya,

You need to save the UniqueID of the RadGrid instance in which you are opening the context menu. You can save it in a hidden field and retrieve it on the server using the Request.Form collection. A similar approach is demonstrated in the RadGrid with AJAX-enabled Context Menu demo. The example shows how the index of the clicked row is saved on a hidden field. In your case, you would additionally save the target grid ID.

Veli
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
Grid
Asked by
nacharya
Top achievements
Rank 1
Answers by
nacharya
Top achievements
Rank 1
Veli
Telerik team
Share this question
or