Seems that get_itemIndexHierarchical returns incorrect value when there are collapsed groups over the selected item.
I have an ajaxified radgrid with radcontextmenu that calls a function. In this function eventargs.get_itemIndexHierarchical is used to get the index. This is done according to your example with radgrid and radcontextmenu. Sender.get_masterTableView().get_dataItems()[index].get_element() is then called but returns null, which is not the wanted behaviour. Expand/collapse is done server-side and only the expanded items are transferred to the client as i can see. This is working when groups over the selected item are expanded.
Maybe there are other ways to get index of the selected item when using radcontextmenu and radgrid with expand/collapse server-side?
Regards
daaland1972
I have an ajaxified radgrid with radcontextmenu that calls a function. In this function eventargs.get_itemIndexHierarchical is used to get the index. This is done according to your example with radgrid and radcontextmenu. Sender.get_masterTableView().get_dataItems()[index].get_element() is then called but returns null, which is not the wanted behaviour. Expand/collapse is done server-side and only the expanded items are transferred to the client as i can see. This is working when groups over the selected item are expanded.
Maybe there are other ways to get index of the selected item when using radcontextmenu and radgrid with expand/collapse server-side?
Regards
daaland1972