Hi,
I have created a context menu inside the child band of WHDG. My question is how to get a datakey of row on which user made right click and context menu appears? I want this value on server side.
Any help will be appreciate.
Thanks,
Mit
Hello Mitesh,
Here is a sample:
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Editing-and-Selection/Row-Context-Menu/Default.aspx?cn=data-grid&sid=33a8cf91-db4a-4b03-8291-9c179a11ceb8
Hope this helps
Hi Radoslav,
If possible can you please provide a example of this? I want to get the Datakeys of selected rows on either client or server side.
Mitesh
Hello Mit,
Probably you could handle grid's click client –side event and register your function there. Note that as an argument in this function will be passed the Item(cell) object that has been clicked in the grid, based on this you should be able to select a row from the grid programmatically. In that case if you have “AutoPostback” flags of RowSelectionChanged event call to the server will be issued and you will be able to access the selectedRows collection of the grid to get the selected row.