This example demonstrates how to use ASPxGridView in different modes on editing and inserting a new row.
In the illustrated scenario, the grid edits rows in Batch mode and inserts them using the edit form. For this purpose, ASPxGridView is nested in ASPxCallbackPanel and its mode is switched on the callback panel's callback.
A custom New button is placed in the command column's HeaderTemplate. On the New button's click, you can check if ASPxGridView has unsaved changes using the client-side HasChanges method and call the UpdateEdit method to save these changes or initiate the ASPxCallbackPanel's callback to add a new row.
Question Comments
Added By: Quasar Wong at: 5/3/2015 6:58:24 PM
Hi I have tested this function and find that the update button not work on inserting a new row. Thanks.
p.s. I am using v14.2.7
Hello,
To process your recent post more efficiently, I created a separate ticket on your behalf: T237227: ASPxGridView - The T191177 example - The update button does not work on inserting a new row. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.