I've got a page that looks like this ...
Now, if I've read things right, when I first double click on a row, that row goes into Edit mode. That works.
Now if I double click another row, the first row should be updated and then the 2nd should go into Edit mode. As I understand it, the call to updateItem() should fire the ItemUpdated server-side event. It doesn't. The 2nd row goes in to Edit mode, so something's happening.
What am I missing?
--
Stuart
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <telerik:RadCodeBlock ID="CodeBlock" runat="server"> |
| <script type="text/javascript"> |
| var editedRow = -1; |
| function RowDblClick(sender, eventArgs) { |
| var masterTable = $find("<%= Grid.MasterTableView.ClientID %>"); |
| if(editedRow != -1) { |
| masterTable.updateItem(editedRow); |
| } |
| editedRow = eventArgs.get_itemIndexHierarchical(); |
| masterTable.editItem(editedRow); |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="ScriptManager" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxPanel ID="AjaxPanel" runat="server" Height="100%" Width="100%"> |
| <telerik:RadGrid ID="Grid" |
| runat="server" |
| AllowAutomaticUpdates="true" |
| AutoGenerateColumns="false" |
| OnItemUpdated="Grid_ItemUpdated" |
| OnNeedDataSource="Grid_NeedDataSource" |
| Skin="Hay" > |
| <MasterTableView EditMode="InPlace" > |
| <Columns> |
| <telerik:GridBoundColumn DataField="columna" UniqueName="columna" HeaderText="Column A"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="columnb" UniqueName="columnb" HeaderText="Column B"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="columnc" UniqueName="columnc" HeaderText="Column C"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="idx" UniqueName="idx" Visible="false"></telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <ClientEvents OnRowDblClick="RowDblClick" /> |
| <Selecting AllowRowSelect="true" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| </telerik:RadAjaxPanel> |
| </form> |
| </body> |
| </html> |
Now, if I've read things right, when I first double click on a row, that row goes into Edit mode. That works.
Now if I double click another row, the first row should be updated and then the 2nd should go into Edit mode. As I understand it, the call to updateItem() should fire the ItemUpdated server-side event. It doesn't. The 2nd row goes in to Edit mode, so something's happening.
What am I missing?
--
Stuart