﻿<?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 - GetChanges() problem if the rows are grouped</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetChanges-problem-if-the-rows-are-grouped/</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>GetChanges() problem if the rows are grouped</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetChanges-problem-if-the-rows-are-grouped/</link><pubDate>Fri, 06 Nov 2009 01:07:49 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>Grouping</category><description>Hi Michael,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;I am not sure about what you are doing. As i said before, i don't get any error when comment out this code grd.XmlHttp.Asynchronous = false; Therefore you got message box "Please wait..." because you called grid,Refresh(). If the progress has not been finished yet, of course that would be showed. To avoid this message box, i think you can use a timeout.&lt;/div&gt;
&lt;div&gt;&lt;font class="Apple-style-span" style="font-size: 15px; color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="font-size: 12px; line-height: 18px; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class="Apple-style-span" style="font-size: 15px; color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; "&gt;&lt;span style="font-size: 12px; line-height: 18px; "&gt;Regards,&lt;br /&gt;Handy &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;</description></item><item><title>GetChanges() problem if the rows are grouped</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetChanges-problem-if-the-rows-are-grouped/</link><pubDate>Wed, 04 Nov 2009 08:33:21 GMT</pubDate><dc:creator>Michael</dc:creator><category>Grouping</category><description>&lt;p&gt;Hi Handy&lt;/p&gt;
&lt;div id="result_box" dir="ltr"&gt;Before deleting I want check if there row has dependencies.&lt;/div&gt;
&lt;div dir="ltr"&gt;&lt;div id="result_box" dir="ltr"&gt;
&lt;div id="result_box" dir="ltr"&gt;Between loading the page and the batch update the dependencies might have changed. So i check on clientsideevent OnAcceptAllChanges if the user has selected a row with dependencies. If true then i undo Changes for this row.&lt;/div&gt;
&lt;div dir="ltr"&gt; &lt;/div&gt;
&lt;div dir="ltr"&gt;I don't want that the user sees the error of the database.&lt;/div&gt;
&lt;div dir="ltr"&gt; &lt;/div&gt;
&lt;div dir="ltr"&gt;Regards&lt;/div&gt;
&lt;div dir="ltr"&gt;Michael&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description></item><item><title>GetChanges() problem if the rows are grouped</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetChanges-problem-if-the-rows-are-grouped/</link><pubDate>Tue, 03 Nov 2009 00:16:57 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>Grouping</category><description>&lt;p&gt;Hi Michel,&lt;/p&gt;&lt;p&gt;Hm, but i don't understand why you need to refresh the grid. When you accept pending changes, the grid should be automatically refreshed. So, it should be no problem for your application.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>GetChanges() problem if the rows are grouped</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetChanges-problem-if-the-rows-are-grouped/</link><pubDate>Thu, 29 Oct 2009 10:50:20 GMT</pubDate><dc:creator>Michael</dc:creator><category>Grouping</category><description>&lt;p&gt;Hi Handy&lt;/p&gt;
&lt;p&gt;In first column (R) dependencies (referential integrity) are shown. Has a row still dependencies, the row can not be deleted. So I check on client side, if the cell value is greater then 0. Since the dependencies might have changed, i refresh grid first. Because the refresh is asynchrom running, I had problems in the past (Application hangs -&amp;gt; Messagebox "Please wait..."). For this reason, I set XmlHttp.Asynchronous=false.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item><item><title>GetChanges() problem if the rows are grouped</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetChanges-problem-if-the-rows-are-grouped/</link><pubDate>Thu, 29 Oct 2009 04:39:25 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>Grouping</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;May i know your requirement? I don't quite understand your scenario and why your scenario must be like this so the error showed. If I comment out this code grd.XmlHttp.Asynchronous = false;, I can delete the second group without error.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description></item><item><title>GetChanges() problem if the rows are grouped</title><link>http://www.intersoftsolutions.com/Community/WebGrid/GetChanges-problem-if-the-rows-are-grouped/</link><pubDate>Mon, 26 Oct 2009 09:19:05 GMT</pubDate><dc:creator>Michael</dc:creator><category>Grouping</category><description>&lt;div id="result_box" dir="ltr"&gt;I have a problem with GetChanges() if the rows are grouped. Please have a look on attached pictures and sample.&lt;/div&gt;
&lt;div dir="ltr"&gt;Following Code (&lt;em&gt;DelChanges[i].Row.GetCell()&lt;/em&gt;) works in first group only!&lt;/div&gt;
&lt;div dir="ltr"&gt;&lt;div id="result_box" dir="ltr"&gt;Have I forgotten anything?&lt;/div&gt;&lt;/div&gt;
&lt;div dir="ltr"&gt;&lt;pre&gt;var DelChanges = grd.GetChanges("Deleted");
for (var i in DelChanges) {
    if (DelChanges[i].Row.GetCell("Dependencies").Value &amp;gt; 0) {
        if (DependenciesText.length &amp;gt; 0)
            MessageQuantity = 2;
        else
            MessageQuantity = 1;
        DependenciesText &amp;#43;= "\n - " &amp;#43; DelChanges[i].Row.GetCell("CustomerID").Text &amp;#43; " | " &amp;#43; DelChanges[i].Row.GetCell("CompanyName").Text &amp;#43; " | " &amp;#43; DelChanges[i].Row.GetCell("ContactName").Text &amp;#43; " | " &amp;#43; DelChanges[i].Row.GetCell("ContactTitle").Text;
        DelChanges[i].Row.UndoChanges();
    }
}&lt;/pre&gt;&lt;/div&gt;
&lt;p dir="ltr"&gt;Please try my sample. &lt;/p&gt;
&lt;div dir="ltr"&gt;&lt;ol&gt;
&lt;li&gt;Change ConnectionString and run sample&lt;/li&gt;
&lt;li&gt;Delete a row in first group&lt;/li&gt;
&lt;li&gt;Accept all Changes (-&amp;gt; Messagebox)&lt;/li&gt;
&lt;li&gt;Delete a row in second group&lt;/li&gt;
&lt;li&gt;Accept all Changes (-&amp;gt; Error)&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</description></item></channel></rss>