﻿<?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 missing pending changes under IE8 Native</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-missing-pending-changes-under-IE8-Native/</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 missing pending changes under IE8 Native</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-missing-pending-changes-under-IE8-Native/</link><pubDate>Wed, 23 Mar 2011 10:09:14 GMT</pubDate><dc:creator>Gmontes</dc:creator><category>WebGrid</category><description>&lt;p&gt;Sure,&lt;/p&gt;&lt;p&gt;In your web.config file, you can specify the ClientIDMode property for the pages element. You should have something like this:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;system.web&amp;gt;
...
&amp;lt;pages clientIDMode="AutoID" /&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;If you don't specify the ClientIDMode property that is by default "Predictable", which is required to break the PerformBatchUpdate() method.&lt;/p&gt;
&lt;p&gt;Guillermo&lt;/p&gt;</description></item><item><title>PerformBatchUpdate missing pending changes under IE8 Native</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-missing-pending-changes-under-IE8-Native/</link><pubDate>Tue, 22 Mar 2011 03:19:21 GMT</pubDate><dc:creator>lili</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Guillermo,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am very glad that the attached sample could help you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;About the last question, I'm terribly sorry I don't really get what you mean. Could you explain in more details? Is the AutoID you mean like the AutoIncrement?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Lili Khiung&lt;/p&gt;</description></item><item><title>PerformBatchUpdate missing pending changes under IE8 Native</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-missing-pending-changes-under-IE8-Native/</link><pubDate>Mon, 21 Mar 2011 11:51:36 GMT</pubDate><dc:creator>Gmontes</dc:creator><category>WebGrid</category><description>&lt;p /&gt;&lt;p&gt;Hi Lili,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;You web.config gave me the answer, thanks for attaching it. If you remove or change the clientIDMode property in your pages directive to "Predictable" (the default), then your example will break as well.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Is it required to have AutoID with .NET 4.0 solutions?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>PerformBatchUpdate missing pending changes under IE8 Native</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-missing-pending-changes-under-IE8-Native/</link><pubDate>Mon, 21 Mar 2011 05:12:20 GMT</pubDate><dc:creator>lili</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Guillermo,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I replicated your issue, but the collection worked just fine. Here's I attach the sample I made based on your issue, please check if it is the same with what you mean. I also attach the screen shot of the collection for you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Lili Khiung&lt;/p&gt;</description></item><item><title>PerformBatchUpdate missing pending changes under IE8 Native</title><link>http://www.intersoftsolutions.com/Community/WebGrid/PerformBatchUpdate-missing-pending-changes-under-IE8-Native/</link><pubDate>Fri, 18 Mar 2011 16:16:13 GMT</pubDate><dc:creator>Gmontes</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We're having this issue with the PerformBatchUpdate method and the PendingChanges collection, we're not getting any changes in the BatchUpdate event.&lt;/p&gt;
&lt;p&gt;This is happening with:&lt;/p&gt;
&lt;p&gt;- VS 2010&lt;/p&gt;
&lt;p&gt;- Any page using a Master page&lt;/p&gt;
&lt;p&gt;- IE8 Native&lt;/p&gt;
&lt;p&gt;To reproduce this I created a new Web Application project in VS 2010 (that gives me the master) and overwrote the Default.aspx page with this;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="TestControls2010._Default" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISNet" %&amp;gt;
&amp;lt;asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"&amp;gt;
&amp;lt;/asp:Content&amp;gt;
&amp;lt;asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"&amp;gt;
    &amp;lt;ISNet:WebGrid id="webGrid1" runat="server" Height="250px" Width="500px" UseDefaultStyle="true" DefaultStyleMode="Elegant"
     OnInitializeDataSource="webGrid1_InitializeDataSource" OnBatchUpdate="webGrid1_BatchUpdate"&amp;gt;
        &amp;lt;LayoutSettings AllowBatchUpdate="true" AllowEdit="Yes" AllowAddNew="Yes" /&amp;gt;
        &amp;lt;RootTable&amp;gt;
            &amp;lt;Columns&amp;gt;
                &amp;lt;ISNet:WebGridColumn Name="ID" DataMember="key" /&amp;gt;
                &amp;lt;ISNet:WebGridColumn Name="Name" DataMember="value" /&amp;gt;
            &amp;lt;/Columns&amp;gt;            
        &amp;lt;/RootTable&amp;gt;
    &amp;lt;/ISNet:WebGrid&amp;gt;
    &amp;lt;br /&amp;gt;
    &amp;lt;asp:Button ID="btnBatchUpdate" runat="server" Text="Do Batch Update" OnClick="btnBatchUpdate_Click" /&amp;gt;
&amp;lt;/asp:Content&amp;gt;
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;Here's my cs&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ISNet.WebUI.WebGrid;
namespace TestControls2010
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void btnBatchUpdate_Click(object sender, EventArgs e)
        {
            webGrid1.PerformBatchUpdate(false);
        }
        protected void webGrid1_InitializeDataSource(object sender, DataSourceEventArgs e)
        {
            var listkvp = new List&amp;lt;KeyValuePair&amp;lt;string, string&amp;gt;&amp;gt;() { 
                new KeyValuePair&amp;lt;string, string&amp;gt;("1", "Canada"),
                new KeyValuePair&amp;lt;string, string&amp;gt;("2", "China"),
                new KeyValuePair&amp;lt;string, string&amp;gt;("3", "Croatia")
            };
            e.DataSource = listkvp;
        }
        protected void webGrid1_BatchUpdate(object sender, BatchUpdateEventArgs e)
        {
            var count = e.PendingChanges.Count;
        }
    }
}
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;After adding a record to the grid, I'm triggering the BatchUpdate event by calling webGrid1.PerformBatchUpdate() from a button click event... as you can see in the screenshots the BatchUpdateEventArgs.PendingChanges collection is empty. Is there something I can configure to get this working?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Finally, this is not the case if I use compatibility view or the batch update controls (the blue check button to commit changes), but using those are not an option... the controls are even hidden in our production instances of the grid.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Guillermo Montes&lt;/p&gt;</description></item></channel></rss>