﻿<?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 Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</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 Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Fri, 06 Nov 2009 10:29:21 GMT</pubDate><dc:creator>acunningham</dc:creator><category>Batch Update</category><description>&lt;p&gt;James,&lt;/p&gt;&lt;p&gt;Thanks for this.  I've tried it out on the sample and there is a definite performance improvement.&lt;/p&gt;
&lt;p&gt;I can't try it out on my actual application till next week as we've rolled back the controls for this release so I'll confirm if it solve my problem when I upgrade again next week.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Thu, 05 Nov 2009 05:23:53 GMT</pubDate><dc:creator>james</dc:creator><category>Batch Update</category><description>&lt;p&gt;Adrian,&lt;/p&gt;&lt;p&gt;Yes, the issue occurred in IE7 as well. The solution can be achieved by assigning all menu styles to external classes. Please find the attached sample for the working menu bar and Grid inside WebPaneManager.&lt;/p&gt;
&lt;p&gt;Note: Please pay attention on the styles definition under &amp;lt;MenuStyleSettings&amp;gt; in the WebMenuBar control. Then take a look at the MenuBarStyles.css which contains the definition of each styles assigned in the CssClass. All these styles must be assigned as it is to resolve the IE performance issue.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;James.&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Tue, 03 Nov 2009 08:54:45 GMT</pubDate><dc:creator>acunningham</dc:creator><category>Batch Update</category><description>&lt;p&gt;James,&lt;/p&gt;&lt;p&gt;We are currently using IE 7 and not IE8.&lt;/p&gt;
&lt;p&gt;How many styles exactly are we talking about having to override?  I assume this is a bug with the control since we can't use it out of the box with these performance issues?  Even using the standard out of the box styles we get this problem.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Currently one of our proposed workarounds is simply to ditch the Intersoft MenuBar completely until such times as there is a fix for this issue or we find another more suitable MenuBar that doesn't cause us these issues.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Tue, 03 Nov 2009 08:50:07 GMT</pubDate><dc:creator>james</dc:creator><category>Batch Update</category><description>&lt;p&gt;Hi Adrian,&lt;/p&gt;&lt;p&gt;It appears to be performance issue in IE8, where the runtime styles take ages to create. The same sample worked fine in other browsers.&lt;/p&gt;
&lt;p&gt;A working solution to this issue is by assigning the CssClass of all menu styles in the StyleSettings.MenuStyles. When the CssClass of all styles are assigned, the control will quickly look over the classes defined in your pages (can be inline styles defined in the &amp;lt;style&amp;gt; tag or in external css file). This should resolve the IE 8 performance issue associated with WebMenu control.&lt;/p&gt;
&lt;p&gt;Let me know if that helps in your case. Thanks!&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;James.&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Tue, 03 Nov 2009 07:58:26 GMT</pubDate><dc:creator>acunningham</dc:creator><category>Batch Update</category><description>&lt;br /&gt;&lt;p&gt;Handy,&lt;/p&gt;
&lt;p&gt;I also think an issue I posted to the Devloper Network earlier in the year is possibly connected to this as the "IntegratedTo" property was causing me the same issue then.&lt;/p&gt;
&lt;p&gt;&lt;a name="origin"&gt;WebToolBar Crashes IE [IS-F0A149C8-A17F-44F6-88F5-B90718928C4F] &lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a name="origin"&gt;Regards,&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a name="origin"&gt;Adrian.&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Tue, 03 Nov 2009 07:56:28 GMT</pubDate><dc:creator>acunningham</dc:creator><category>Batch Update</category><description>&lt;p&gt;Handy,&lt;/p&gt;&lt;p&gt;A combination of Intersoft controls appears to be causing the performance issue that we are experiencing, and I can confirm Shawn's issue.  The level of performance resulting is completely unacceptable for a web application hence our need to rollback to the previous version which is not ideal as there are many features in the new release that we need.&lt;/p&gt;
&lt;p&gt;In fact Shawn's sample perfectly demonstrates the issue we are having.  The control that appears to be causing the issue is the WebMenuBar control, and more specifically the "IntegratedTo" property being set to none.&lt;/p&gt;
&lt;p&gt;By simply changing the value of the "IntegratedTo" property to "DesktopManager", the page in the sample loads immediately, however with the value set to "None" it takes considerably longer, almost 30 seconds.&lt;/p&gt;
&lt;p&gt;If I remove the "IntegratedTo" property altogether it also loads fast but I get JavaScript errors when I hover on the menu.  The error received is "this.CommandStyle is null or not an object".&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Tue, 03 Nov 2009 05:42:20 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>Batch Update</category><description>&lt;p&gt;Hello Adrian,&lt;/p&gt;&lt;p&gt;I am glad that the workaround wokrs fine on yours. But may i know why you need to revert back to previous 2008 release? I think i also got the same report from Shawn. But we need to replicate the issue first to investigate the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Mon, 02 Nov 2009 07:47:00 GMT</pubDate><dc:creator>acunningham</dc:creator><category>Batch Update</category><description>&lt;p&gt;James,&lt;/p&gt;&lt;p&gt;I did use this approach to preserve batch update changes and it worked fine.  &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;However in the end we had to revert back to the previous 2008 release of your controls as we were experience performance issues with the Grid in combination with WebPaneManager and MenuBar controls, which meant that the page response times were unacceptable.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Sat, 31 Oct 2009 01:48:50 GMT</pubDate><dc:creator>james</dc:creator><category>Batch Update</category><description>&lt;p&gt;Hi Adrian,&lt;/p&gt;&lt;p&gt;You can get the pending changes data in server-side by handling the BatchUpdate server-side event.&lt;/p&gt;
&lt;p&gt;First, you can access all modified rows through e.PendingChanges, and then loop through the list of the modified cell data in the Data property of each row change.&lt;/p&gt;
&lt;p&gt;Here's the C# code example that shows how to achieve this scenario.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;protected void Page_Load(object sender, EventArgs e)
{
     WebGrid1.BatchUpdate &amp;#43;= new EventHandler&amp;lt;BatchUpdateEventArgs&amp;gt;(WebGrid1_BatchUpdate);
}
void WebGrid1_BatchUpdate(object sender, BatchUpdateEventArgs e)
{
    foreach (&lt;b&gt;&lt;span style="color: rgb(0, 112, 192); "&gt;WebGridRowChanges&lt;/span&gt;&lt;/b&gt; changes in &lt;b&gt;&lt;span style="color: rgb(0, 112, 192); "&gt;e.PendingChanges&lt;/span&gt;&lt;/b&gt;)
    {
        foreach (&lt;b&gt;&lt;span style="color: rgb(0, 112, 192); "&gt;WebGridCellData&lt;/span&gt;&lt;/b&gt; cellChanges in &lt;b&gt;&lt;span style="color: rgb(0, 112, 192); "&gt;changes.Data&lt;/span&gt;&lt;/b&gt;)
        {
            string newText = cellChanges.NewText;
               
            // TODO: update your data row to the new text
        }
    }
}&lt;/pre&gt;
&lt;p&gt;Let me know if the above sample works for you. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;James.&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Thu, 29 Oct 2009 23:52:21 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>Batch Update</category><description>&lt;p&gt;I assume you knew how to bind your DataTable into WebGrid. For your issue, could you let me know what  you used to get the pending changes return value? Normally, i used e.PendingChanges[0].Data[0].NewText or OldText in BatchUpdate server side event to get pending changes value.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid Batch Update</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Batch-Update/</link><pubDate>Wed, 21 Oct 2009 16:25:03 GMT</pubDate><dc:creator>acunningham</dc:creator><category>Batch Update</category><description>Hi,&lt;br /&gt;&lt;br /&gt;Questions:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt; Will the BatchUpdate feature of the WebGrid Update a DataTable constructed in the Code Behind of the ASPX page that is not connected in any way to the physical database?&lt;/li&gt;&lt;li&gt;If so at which point is the DataTable updated as I can't see the changes in the BatchUpdate method? And will need to iterate through the DataTable to actually write the changes to the database.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Context:&lt;br /&gt;DataTable is used to flatten out a complex data structure so each value can be display on a row.&lt;br /&gt;&lt;br /&gt;Top level Data Object (Region Object) contains a nested List of data, each element is a Data Object (Factor Object)&lt;br /&gt;&lt;br /&gt;Each element (Factor Object) of the nested list also contains a nested list of data, each elemtn is a data object (LOBFactor object).&lt;br /&gt;&lt;br /&gt;Each element (LOBFactor Object) of nested list contains a list of data objects (FactorValue Object) which contains the actual data values.&lt;br /&gt;&lt;br /&gt;Here is data structure:&lt;br /&gt;&lt;br /&gt;Factor Object&lt;br /&gt;...&lt;br /&gt;private int _factorID&lt;br /&gt;private string _Description&lt;br /&gt;private int _months;&lt;br /&gt;private decimal _rate;&lt;br /&gt;private List&amp;lt;LOBFactor&amp;gt; _lobFactors // Contains a list of 7 objects.&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LOBFactor Data Object: (7 instances of this object, i.e. 7 ColumnSets)&lt;br /&gt;&lt;br /&gt;LOBFactor Object&lt;br /&gt;...&lt;br /&gt;private int _lobID;&lt;br /&gt;private string _lobName;&lt;br /&gt;private List&amp;lt;FactorValues&amp;gt; _factorValues; // Contains list of 5 objects&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;Factor Value Object:&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;private int _factorID;&lt;br /&gt;private int _lobID;&lt;br /&gt;private decimal _factorValue;&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;- I basically need to flatten this structure to display all the nested values on a Grid row.&lt;br /&gt;- Be able to make changes to any cell in the grid using the batch update mechanism. &lt;br /&gt;- Have those changes saved to my DataTable in the code behind&lt;br /&gt;- Then transfer those changes back to my nested data structure before sending to database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Adrian&lt;br /&gt;</description></item></channel></rss>