iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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.
[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) +90 System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) +77 System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) +211 System.Xml.XmlTextReaderImpl.ParseEndElement() +1947048 System.Xml.XmlTextReaderImpl.ParseElementContent() +424 System.Xml.XmlTextReaderImpl.Read() +29 System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +557 System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +50 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +162 System.Xml.XmlDocument.Load(XmlReader reader) +96 System.Xml.XmlDocument.LoadXml(String xml) +197 ISNet.WebUI.WebGrid.WebGrid.PerformBatchUpdate(Boolean throwExceptionOnError, Boolean updateUI) +832 V2Solutions.PWACustomMyTasks.PWACustomMyTasks.lnkBtnNextTimePeriod_Click(Object sender, EventArgs e) +51 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +90 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +76 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Do you mind elaborating on the WebGrid setting you are using?
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.
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:
void _grid_PrepareDataBinding(object sender, DataSourceEventArgs e){ if (!Page.IsPostBack) { _grid.RetrieveStructure(); } _grid.RootTable.DataKeyField = "CustomerID";}
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.
Yes, we are using nightly build sent by Yudhiy. Can you send me an update once your team resolves the issue with scenario please ?
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.
In the mean time, based on further testing. Using the nightly build, please try this workaround to achieve your scenario:
During postback button click event handler after invoking PerformBatchUpdate, execute a RefreshAll function in the client side. Here is the snippet:
protected void Button1_Click(object sender, EventArgs e){ _grid.PerformBatchUpdate(true,true); Page.ClientScript.RegisterStartupScript(this.GetType(), "RefreshGrid", "<script>RefreshGrid()</script>");}
function RefreshGrid(){ var grid = ISGetObject("WebGrid1"); grid.RefreshAll();}
Glen,
this work around will not work as i mentioned earlier in my first POST in this thread that calling
intersoftWebGrid.PerformBatchUpdate(true,true) itself gives XmlException as shown above.
Any other idea ?
Thanks.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname