We have a regular WebGrid control (not WebDataGrid) which we've placed in a Microsoft UpdatePanel control to enable Ajax functionality. Interestingly, after data is entered in a particualr cell, then a call is made using Ajax to the server side UpdateCell method which executes custom business logic against SQL and returns a status description that will update another field in the row.
The issue we're having is that if a user enters the data in the triggering cell and then immediately presses the AddNew button, the new row is added before the Ajax call has completed. Unfortunately, when the Ajax call returns, the original line is updated with the status description, but the newly added line is deleted, even if they have already started filling in data.
Is there a way to make sure that the Ajax return call only updates the line that initated the call while still allowing the user to be typing in data on a new line?
Thanks in advance
Hello,
When you use AJAX built-in functionalities of UltrawebGrid it 's not required UpdatePanel.
In order to avoid this issue just remove the UpdatePanel.
More information about AJAX Functionalities of the grid you can refer to the following link;
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2009.2/CLR3.5/html/WebGrid_AJAX_Functionality.html