I have a RadGrid that is working as expected with a Self Referencing Hierarchy, I have now been tasked with putting a Right Click Context menu in place. What I need to figure out is:
1) How to select the highlight / select the row that has been right clicked in a nested TableView.
I have tried to replace:
var index = eventArgs.get_itemIndexHierarchical();
var mtv= sender.get_masterTableView();
mtv().selectItem(mtv.get_dataItems()[index].get_element(), true);
with
var index = eventArgs.get_itemIndexHierarchical();
var otv= sender.get_tableView();
otv().selectItem(otv.get_dataItems()[index].get_element(), true);
2) How do I deselect any previously right clicked rows (be they in the Master Table View or in an nested Table View)
"sender.get_masterTableView().clearSelectedItems();" only clears out selected rows in the Master Table View.
Do I need to call get_detailTables() and iterate through these?
3) How can I get a value from the either the DataItem or the DataKeyValues from client side for the row that has fired off the
context menu?
Any thoughts / pointers most appreciated
Cheers
Simon