What I'm trying to accomplish is very simple (but I can't seem to find a way on my own).
I would like to open a row with EditMode="InPlace" with double click on that row, while I would like to open the whole form editing if I click on a command button in the grid (for example the GridEditCommandColumn button).
To open the row in edit mode on double click I just:
<ClientEvents OnRowDblClick="RowDblClick" />' and then... <telerik:RadScriptBlock runat="server"> <script type="text/javascript"> function RowDblClick(sender, eventArgs) { sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical()); } </script> </telerik:RadScriptBlock>The problem is how to switch from one edit mode to another in code behind based on how the user accessed edit mod, from double clik or from GridEditCommandColumn button.
If I put "InPlace" as default edit mode and then in code behind:
Protected Sub RadGrid1_EditCommand(sender As Object, e As GridCommandEventArgs) RadGrid1.MasterTableView.EditMode = GridEditMode.EditFormsEnd SubThis works and open the form edit mode. The problem is.. If I for example issue a custom ItemCommand for one of the two, let's say "FullEditCommand" and there I switch to "GridEditMode.EditForms", how can I then retrigger the Edit command to go on with the editing?
Alsow I have to explicitly set "GridEditMode.InPlace" when I access editing with double click on a row, otherwise the grid would remember the last setting so I cannot pass from one to another.
Any hint pointing in the right direction is much appreciated as always. Thanks in advance.
