﻿<?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 on WebGrid is throwing an exception</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-method-on-WebGrid-is-throwing-an-exception/</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 on WebGrid is throwing an exception</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-method-on-WebGrid-is-throwing-an-exception/</link><pubDate>Sun, 18 Apr 2010 23:56:34 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Do you mind elaborating on the WebGrid setting you are using? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;In my test using simple flat grid, I did not encounter the error you mentioned. Attached is the sample page used in my testing, feel free to modify it to reflect the WebGrid setting you are using.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>PerformBatchUpdate method on WebGrid is throwing an exception</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-method-on-WebGrid-is-throwing-an-exception/</link><pubDate>Fri, 16 Apr 2010 06:16:57 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;Glen,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;this work around will not work as i mentioned earlier in my first POST in this thread that calling &lt;/p&gt;
&lt;p&gt;intersoftWebGrid.PerformBatchUpdate(true,true) itself gives XmlException as shown above.&lt;/p&gt;
&lt;p&gt;Any other idea ?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>PerformBatchUpdate method on WebGrid is throwing an exception</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-method-on-WebGrid-is-throwing-an-exception/</link><pubDate>Wed, 14 Apr 2010 23:26:53 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Sure, we will send you the build after a fix has been develop. I have add a note in the bug fix regarding your request.&lt;/p&gt;&lt;p&gt;In the mean time, based on further testing. Using the nightly build, please try this workaround to achieve your scenario:&lt;/p&gt;
&lt;p&gt;During postback button click event handler after invoking PerformBatchUpdate, execute a RefreshAll function in the client side. Here is the snippet:&lt;/p&gt;&lt;pre&gt;protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;    _grid.PerformBatchUpdate(true,true);&lt;br /&gt;    Page.ClientScript.RegisterStartupScript(this.GetType(), "RefreshGrid", "&amp;lt;script&amp;gt;RefreshGrid()&amp;lt;/script&amp;gt;");&lt;br /&gt;}&lt;/pre&gt;&lt;pre&gt;function RefreshGrid()&lt;br /&gt;{&lt;br /&gt;    var grid = ISGetObject("WebGrid1");&lt;br /&gt;    grid.RefreshAll();&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>PerformBatchUpdate method on WebGrid is throwing an exception</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-method-on-WebGrid-is-throwing-an-exception/</link><pubDate>Wed, 14 Apr 2010 08:34:30 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;Yes, we are using nightly build sent by Yudhiy. Can you send me an update once your team resolves the issue with scenario please ?&lt;/p&gt;</description></item><item><title>PerformBatchUpdate method on WebGrid is throwing an exception</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-method-on-WebGrid-is-throwing-an-exception/</link><pubDate>Wed, 14 Apr 2010 05:16:28 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&amp;nbsp;The PerformBatchUpdate function with 2 parameter is not available in the released build, I assumed you are using our WebGrid nightly build.&lt;p&gt;The error could only be replicated if you did not set the DataKeyField in the WebGrid table correctly. In my test you will need to set the DataKeyField during page load and after RetrieveStructure during PrepareDataBinding. Here is the snippet for PrepareDataBinding event handler:&lt;/p&gt;&lt;pre&gt;void _grid_PrepareDataBinding(object sender, DataSourceEventArgs e)&lt;br /&gt;{&lt;br /&gt;    if (!Page.IsPostBack)&lt;br /&gt;    {&lt;br /&gt;        _grid.RetrieveStructure();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    _grid.RootTable.DataKeyField = "CustomerID";&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;My test also indicate that the PerformBatchUpdate function still fails to update the Grid during postback. The bug report has been reactivated and being investigated by our developer.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>PerformBatchUpdate method on WebGrid is throwing an exception</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-method-on-WebGrid-is-throwing-an-exception/</link><pubDate>Tue, 13 Apr 2010 07:24:35 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;&lt;span /&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight: normal; "&gt;&lt;span style="font-size: 10pt; "&gt;HI,&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;We are using WebGrid 7 in SharePoint Web Part where we are rendering the trid programatically.&lt;/div&gt;
&lt;div&gt;I have BatchUpdate Enabled in my Grid and PromptUnsavedChanges flag to false. After i get the updated rows using GetChanges() method, i want to accept changes programtically at server side and for that i hvae call following function.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;interSoftWebUIGridInstanc.PerformBatchUpdate( true , true );&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;But above line of statment failse and throws following exception, Please help.&lt;/div&gt;
&lt;div&gt;--------------------&lt;/div&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: 20px; font-weight: bold; "&gt;&lt;i&gt;The 'rowErrors' start tag on line 4 does not match the end tag of 
'BatchUpdateResult'. Line 4, position 792.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;font style="font-family: arial, helvetica, geneva, sunsans-regular, sans-serif; "&gt;&lt;b&gt;Description: 
&lt;/b&gt;An unhandled exception occurred during the execution of the current web 
request. Please review the stack trace for more information about the error and 
where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: 
&lt;/b&gt;System.Xml.XmlException: The 'rowErrors' start tag on line 4 does not match 
the end tag of 'BatchUpdateResult'. Line 4, position 792.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source 
Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table width="100%" bgcolor="#ffffcc"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;An unhandled exception was generated during the execution of the 
current web request. Information regarding the origin and location of the 
exception can be identified using the exception stack trace below.&lt;/code&gt; 
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;Stack Trace:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table width="100%" bgcolor="#ffffcc"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&lt;pre&gt;[XmlException: The 'rowErrors' start tag on line 4 does not match the end tag of 'BatchUpdateResult'. Line 4, position 792.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) &amp;#43;90
   System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) &amp;#43;77
   System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) &amp;#43;211
   System.Xml.XmlTextReaderImpl.ParseEndElement() &amp;#43;1947048
   System.Xml.XmlTextReaderImpl.ParseElementContent() &amp;#43;424
   System.Xml.XmlTextReaderImpl.Read() &amp;#43;29
   System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) &amp;#43;557
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) &amp;#43;50
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) &amp;#43;162
   System.Xml.XmlDocument.Load(XmlReader reader) &amp;#43;96
   System.Xml.XmlDocument.LoadXml(String xml) &amp;#43;197
   ISNet.WebUI.WebGrid.WebGrid.PerformBatchUpdate(Boolean throwExceptionOnError, Boolean updateUI) &amp;#43;832
   V2Solutions.PWACustomMyTasks.PWACustomMyTasks.lnkBtnNextTimePeriod_Click(Object sender, EventArgs e) &amp;#43;51
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) &amp;#43;90
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) &amp;#43;76
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) &amp;#43;7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) &amp;#43;11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) &amp;#43;177
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) &amp;#43;1746
&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/font&gt;
&lt;p /&gt;</description></item></channel></rss>