PerformBatchUpdate Method

13 replies. Last post: October 5, 2010 10:12 PM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Hi,

Is this a bug with the Batch Update Process?

I have a page with 4 tabs and 2 WebGrids on each tab. The two WebGrids are contained inside a UserControl, and each tab has an instance of the UserControl that contains the 2 grids. Each grid uses the batch update feature which all works fine.

The user can click "Accept All Changes" on the grid and that grid's data will be sent to the server, updated and the "Pending" changes cleared when batch processing has completed.

However, if the user makes changes to multiple grids on different tabs I also want to be able to Save all changes at once when they click the "Save" button on the WebToolBar.

The Save button invokes a full page postback and all page data is saved. I used the following code to perform a batch update on all grids:


if (grdFactors.GetChanges().Count > 0)
{
grdFactors.PerformBatchUpdate(true);
}

Problem is that when the Full Page PostBack ends and screen refreshes, all the pending changes still appear in the grid.

If I navigate away from the page and back again the changes have been saved.

See my attached sample.

Regards,

Adrian.

All times are GMT -5. The time now is 5:13 PM.
Previous Next