﻿<?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 - WebGrid's WebGridRowChanges collection missing updates from the client side UI</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-WebGridRowChanges-collection-missing-updates-from-the-client-side-UI/</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's WebGridRowChanges collection missing updates from the client side UI</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-WebGridRowChanges-collection-missing-updates-from-the-client-side-UI/</link><pubDate>Fri, 10 Dec 2010 05:01:02 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello Shawn,&lt;/p&gt;
&lt;p&gt;I am sorry but I still don't understand your issue. That's why at the beginning I was asking you to explain the scenario since I didn't get what you meant.&lt;/p&gt;
&lt;p&gt;As far as I know, BatchUpdate pending changes works fine on my end. I never encounter the issue like missing the pending changes updates. Since you said that it is not reproducable, could you provide me a recording file that shows how the issue happens on your end? By viewing the recording video, I may get a clear view on your issue and I can start to investigate your issue further.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;</description></item><item><title>WebGrid's WebGridRowChanges collection missing updates from the client side UI</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-WebGridRowChanges-collection-missing-updates-from-the-client-side-UI/</link><pubDate>Thu, 09 Dec 2010 11:15:19 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;What I meant is you can use Client-side events such as OnAddPendingChanges where you can customize the row changes collection using the parameter provided. &lt;/p&gt;&lt;p&gt;Or, if you prefer to use Server-side, you can try BatchUpdate Server-side events. In this event, you can get the pending row collection using BatchUpdateEventArgs provided.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope this helps. Thank you.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I don't think you understand my issue.  The BatchUpdateEventArgs's &lt;span style="font-size: 13px"&gt;PendingChanges (List&amp;lt;WebRowChanges&amp;gt;) appears to be missing updates that were made on the client side.&amp;nbsp; As I said, it is not reproducable but pops up time to time. We have validation on the WebGrid to ensure the data exists so it is definately entered into the WebGrid.&amp;nbsp; I also have auditing on the database to ensure the data isn't being overwritten or deleted. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;    /// &amp;lt;summary&amp;gt;
        /// Handles the Treaty Claim's DataGrid control's OnBatchUpdate event
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="sender"&amp;gt;Sender&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="e"&amp;gt;Event arugments&amp;lt;/param&amp;gt;
        protected void grdTreatyClaims_OnBatchUpdate(object sender, ISNet.WebUI.WebGrid.BatchUpdateEventArgs e)
        {
            // Perform Treaty Claims Grid's batch update
            if (e == null) { return; }
            this.PerformTreatyClaimsGridBatchUpdate(this.GeniusClaimAmountMaster, e.PendingChanges);
        }&lt;/pre&gt;&lt;pre&gt;/// &amp;lt;summary&amp;gt;
        /// Perform batch update on the Treaty Claims Grid control's source
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="source"&amp;gt;Source to update&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="rowChanges"&amp;gt;Row Changes to process&amp;lt;/param&amp;gt;
        /// &amp;lt;returns&amp;gt;Updated source after batch update&amp;lt;/returns&amp;gt;
        private List&amp;lt;Data.GeniusClaimAmountMaster&amp;gt; PerformTreatyClaimsGridBatchUpdate(List&amp;lt;Data.GeniusClaimAmountMaster&amp;gt; source, List&amp;lt;WebGridRowChanges&amp;gt; rowChanges)
        {
            Common.Utility.TraceLogger.Instance.Write("PerformTreatyClaimsGridBatchUpdate [START]"); 
            
            if (rowChanges == null) { return source; }
            
            // Perform change updates
            Data.GeniusClaimAmountMaster item = new Data.GeniusClaimAmountMaster();
            if (source == null) { source = new List&amp;lt;Data.GeniusClaimAmountMaster&amp;gt;(); }
            foreach (WebGridRowChanges rowChangesItem in rowChanges)
            {
                if (rowChangesItem.KeyValue != null)
                {
                    switch (rowChangesItem.RowState)
                    {
                        // Add
                        case RowState.Added:
                            Controllers.FWBWebControls.Treaty.TreatyClaimsGridController.MapRowChangesToObject(item, rowChangesItem);
                            if (item != null)
                            {
                                item.IsDirty = true;
                                source.Add(item);
                            }
                            break;
                        // Update
                        case RowState.Modified:
                            item = Controllers.FWBWebControls.Treaty.TreatyClaimsGridController.GetGeniusClaimAmountMaster(source, rowChangesItem.KeyValue.ToString());
                            if (item != null)
                            {
                                Controllers.FWBWebControls.Treaty.TreatyClaimsGridController.MapRowChangesToObject(item, rowChangesItem);
                                item.IsDirty = true;
                            }
                            break;
                        // Delete
                        case RowState.Deleted:
                            item = Controllers.FWBWebControls.Treaty.TreatyClaimsGridController.GetGeniusClaimAmountMaster(source, rowChangesItem.KeyValue.ToString());
                            if (item != null) { item.IsDeleted = true; }
                            break;
                    }
                }
            }

            Common.Utility.TraceLogger.Instance.Write("PerformTreatyClaimsGridBatchUpdate [END]");

            return source;
        }
&lt;/pre&gt;
</description></item><item><title>WebGrid's WebGridRowChanges collection missing updates from the client side UI</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-WebGridRowChanges-collection-missing-updates-from-the-client-side-UI/</link><pubDate>Thu, 09 Dec 2010 01:54:29 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What I meant is you can use Client-side events such as OnAddPendingChanges where you can customize the row changes collection using the parameter provided. &lt;/p&gt;
&lt;p&gt;Or, if you prefer to use Server-side, you can try BatchUpdate Server-side events. In this event, you can get the pending row collection using BatchUpdateEventArgs provided.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hope this helps. Thank you.&lt;/p&gt;</description></item><item><title>WebGrid's WebGridRowChanges collection missing updates from the client side UI</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-WebGridRowChanges-collection-missing-updates-from-the-client-side-UI/</link><pubDate>Wed, 08 Dec 2010 10:04:35 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Could you explain what scenario do you apply in Client-side UI? Is there anything related with Client binding with Batch Update?&lt;/p&gt;&lt;p&gt;If it is based on Batch update, you can use the parameters available in Batch update Client-side events.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am sorry, I don't follow you. Can you explain more?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>WebGrid's WebGridRowChanges collection missing updates from the client side UI</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-WebGridRowChanges-collection-missing-updates-from-the-client-side-UI/</link><pubDate>Wed, 08 Dec 2010 03:21:54 GMT</pubDate><dc:creator>MarTin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you explain what scenario do you apply in Client-side UI? Is there anything related with Client binding with Batch Update?&lt;/p&gt;
&lt;p&gt;If it is based on Batch update, you can use the parameters available in Batch update Client-side events.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>WebGrid's WebGridRowChanges collection missing updates from the client side UI</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-WebGridRowChanges-collection-missing-updates-from-the-client-side-UI/</link><pubDate>Thu, 02 Dec 2010 10:03:03 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;I have a serious production problem with the WebGrid's WebGridRowChanges collection (WebGrid version 7.0.7200.403) where it is missing updates from the clientside UI.  Unfortunately, we are unable to reproduce this on a regular basis so debugging through the code has been impossible.  However, the database clearly shows missing data.  There is validation on the client-side to ensure certain fields are populated and we also have auditing on the database to track changes at the table level. The auditing shows that the data was never populated. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Since validation is passing at the client, the only thing I can think of is the WebGridRowChanges don't contain the user changes. Has anyone ever had any issue like this?!&lt;/p&gt;</description></item></channel></rss>