﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Tue, 05 Oct 2010 22:12:13 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Dear Adrian,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;I have prepared the build of WebGrid for you, please find the attachment of the latest build and the runable sample under your scenario.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Please do not hesitate to let me know if it does not meet your requirements. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Mon, 04 Oct 2010 15:15:46 GMT</pubDate><dc:creator>acunningham</dc:creator><description>&lt;p&gt;Andi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Can you tell me the exact version of the WebGrid DLL I need that has this fix, as the version I have contains the method you refer to but I still get errors after doing a batch update via the "PerformBatchUpdate" method.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Sun, 03 Oct 2010 22:19:10 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Dear Shawn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Yes, I am pretty sure it will, with this PerfomBatchUpdatage(true,true), it will do the batchupdate and update the user interface as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;I have tried to use this method under your scenario and it works nicely.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;I hope it helps. Thank you and have a nice day&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Fri, 01 Oct 2010 09:47:32 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Adrian Cunningham,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Yes, deeply apologize for the late respond. Could you kindly get our latest build of WebGrid? In our new hotfix, we introduced PerformBatchUpdate(throwOnError, updateUI).&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt"&gt;In your case, you can simply try to use PerformBatchUpdate(true,true)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt"&gt;I hope it can help. Thank you and have a nice day!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I believe this method already exists in my release. Was it updated to fix this bug?&lt;/p&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Thu, 30 Sep 2010 22:02:22 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Adrian Cunningham,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Yes, deeply apologize for the late respond. Could you kindly get our latest build of WebGrid? In our new hotfix, we introduced PerformBatchUpdate(throwOnError, updateUI).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;In your case, you can simply try to use PerformBatchUpdate(true,true)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;I hope it can help. Thank you and have a nice day!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Thu, 30 Sep 2010 13:58:33 GMT</pubDate><dc:creator>acunningham</dc:creator><description>&lt;p&gt;Hey Andi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Just wondering if this issue has been resolved yet as it is a bit of pain having to a Response.Redirect after every batch update.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Mon, 22 Feb 2010 21:51:48 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Jocelyn,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; The issue is still under investigation. I will inform you as soon as I get news from developer team. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Mon, 22 Feb 2010 16:53:07 GMT</pubDate><dc:creator>jcrendulic</dc:creator><description>&lt;p&gt;I am encountering the same problem.  It still does not seem to work correctly.  Any idea when this issue will be fixed?&lt;/p&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Thu, 26 Nov 2009 02:54:52 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Adrian,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The WebGrid1_BatchUpdate behavior from server side is to Update the data in server but not for the layout. I am sorry for the inconvenince, but&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 9pt"&gt;I have sent this issue to the development team and they will enhance this feature in next hotfix.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Thank you,&lt;br /&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Wed, 25 Nov 2009 07:46:14 GMT</pubDate><dc:creator>acunningham</dc:creator><description>&lt;p&gt;Andi,&lt;/p&gt;&lt;p&gt;I am aware that that PerformBatchUpdate method actually calls the &lt;span style="font-family: 'courier new'; font-size: 10pt;"&gt;grdFactors_BatchUpdate &lt;/span&gt;phyiscally saves the data to the database this is desired and documented functionality that I want, what it doesn't do is reflect this in the UI.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The idea (or so I thought) of batch update is to allow me to process multiple changes in one single batch. The documentation states that "&lt;em&gt;In some cases you might prefer to have your own button process the pending changes, in addition to the user the interface provided by the WebGrid&lt;/em&gt;".&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;And this is one of those of those occasions. The PerformBatchUpdate method does physically update my datasource but leaves the datasource and the WebGrid UI in an inconsistent state, and this is a bug in my view.&lt;/p&gt;
&lt;p&gt;Your previous post would actually result in processing the pending changes twice:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;The PerformBatch Update method will process the changes correctly on the button slcik but fails to update the UI of the grid to reflect the processed changes.&lt;/li&gt;&lt;li&gt;The script sends a "Second" request to process the changes simply so the grid looks correct, I would have to do this for all 8 grids.&lt;/li&gt;&lt;/ol&gt;This completely negates the point of me processing pending changes with my own server side code, not to mention that fact that performance will be rubbish.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Adrian.&lt;br /&gt;</description></item><item><title>PerformBatchUpdate Method</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-Method/</link><pubDate>Mon, 23 Nov 2009 14:29:52 GMT</pubDate><dc:creator>acunningham</dc:creator><description>Hi,
&lt;p&gt;Is this a bug with the Batch Update Process?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;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.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;if (grdFactors.GetChanges().Count &amp;gt; 0)&lt;br /&gt;{&lt;br /&gt;    grdFactors.PerformBatchUpdate(true);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;Problem is that when the Full Page PostBack ends and screen refreshes, all the pending changes still appear in the grid.&lt;/p&gt;
&lt;p&gt;If I navigate away from the page and back again the changes have been saved.&lt;/p&gt;
&lt;p&gt;See my attached sample.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>