Hi,
I have a RadContextMenu attached to a RadGrid with 3 options: add, edit and delete the selected row. I use the "OnClientItemClicking" othe RadContextMenu to enable/disable some properties depending on a datakey of the selected row. This works fine as well...until...
I have a RadContextMenu attached to a RadGrid with 3 options: add, edit and delete the selected row. I use the "OnClientItemClicking" othe RadContextMenu to enable/disable some properties depending on a datakey of the selected row. This works fine as well...until...
- if I use the method RadGrid.get_masterTableView().showInsertItem() the editform shows beautifuly
- if I then cancel the insert operation, I can't get the radcontextmenu back again. Instead of firing the "OnClientItemClicking" when I right-click the grid it fires the "OnRowContextMenu" event of the grid and bypasses the "OnClientItemClicking"
What I am trying to do is automatically select the first row (if there is one) after the cancel link of the insert has been selected. I can't seem to catch the event client side and am using the Server Side CancelCommand to set a flag that selects the first row in the PreRender event. This works but then I lose the context menu.
Any Ideas?
Regards
Roger