﻿<?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 - pending</title><link>http://www.intersoftsolutions.com/Community/Tags/pending/</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>WebGrid add pending changes from server-side</title><link>http://www.intersoftsolutions.com/Community/Tags/pending/</link><pubDate>Mon, 17 Oct 2011 07:34:17 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebGrid</category><category>server side</category><category>pending changes</category><category>pending</category><category>validation</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Below is the scenario for my project.&lt;/p&gt;
&lt;p /&gt;
&lt;ul&gt;&lt;li&gt;I have a grid for user input&lt;/li&gt;&lt;li&gt;The grid's data-binding, layout and batch update is done at server side&lt;/li&gt;&lt;li&gt;The grid is paged&lt;/li&gt;&lt;li&gt;Call AcceptAllChanges (client-side) to invoke WebGrid1.BatchUpdate&lt;/li&gt;&lt;li&gt;Validation is done in WebGrid1.BatchUpdate (before write to Database, server-side). [ I wonder if there is any other events for the gird's data validation]&lt;/li&gt;&lt;/ul&gt;
&lt;div&gt;As I need to validate before updating data in Database; so I called "AcceptAllChanges" (client-side) to invoke the server-side "WebGrid1.BatchUpdate" event.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;When Input is valid, everything goes fine. But if the input is invalid, all the Pending changes will be lost (since I call the AcceptAllChanges). Since the WebGrid is paged, so I can't use client-side to add back the pending changes. &lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Is there any way that I could add the Pending changes back when the grid has invalid input, so that, the data inputted before "AcceptAllChanges" can stay on the grid for users to correct.&lt;/div&gt;
&lt;div&gt;Or is there any Event of WebGrid can be provided for validation before the WebGrid.batchUpdate Event.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Thanks and Regards,&lt;/div&gt;
&lt;div&gt;Fung&lt;/div&gt;</description></item></channel></rss>