﻿<?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 UndoAllChanges not undo'in CheckBoxes</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-UndoAllChanges-not-undoin-CheckBoxes/</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 UndoAllChanges not undo'in CheckBoxes</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-UndoAllChanges-not-undoin-CheckBoxes/</link><pubDate>Mon, 15 Nov 2010 03:24:50 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I’d like inform you about the status of work item #766.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;WebGrid development team has managed to get the issue resolved in WebGrid 7. I have tested the nightly build of the hotfix and found that the issue no longer persists.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Should you need to have the nightly build hotfix to be tested on your local end, please let us know.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid's UndoAllChanges not undo'in CheckBoxes</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-UndoAllChanges-not-undoin-CheckBoxes/</link><pubDate>Tue, 20 Jul 2010 04:03:39 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;This minor glitch can be easily reproduced by using BatchUpdate_AllowUndo.aspx of WebGrid reference sample file in WebGridSamples project. A work item, &lt;strong&gt;work item #766&lt;/strong&gt;, has been submitted to WebGrid development team regarding this. WebGrid development team will have this issue fixed and released the hotfix in the next upcoming build of WebGrid 7.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I’ll keep you updated with any news I heard from the team regarding work item #766.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Until the hotfix is released, I’d like to offer you a workaround to overcome this minor glitch. The workaround uses javascript in UndoAllChanges javascript event of WebGrid. The logic is simple:&lt;/span&gt;&lt;/p&gt;
&lt;ol style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;When users click “Undo All Changes” button, the WebGrid1_OnUndoAllChanges javascript event is invoked.&lt;/li&gt;&lt;li&gt;Next, the javascript function will iterates through all the rows that has been changed.&lt;/li&gt;&lt;li&gt;On each row, the function will check whether the column type of changed data is “CheckBox” or not.&lt;/li&gt;&lt;li&gt;If the column type is “CheckBox”, then the checked status of the checkbox element will be reset to its original value.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I enclosed a very simple sample that shows how the workaround implemented. Please let us know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid's UndoAllChanges not undo'in CheckBoxes</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrids-UndoAllChanges-not-undoin-CheckBoxes/</link><pubDate>Mon, 19 Jul 2010 14:17:39 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;I have a WebGrid using BatchUpdate and need a way to clear the grid from all of the user's changes. The WebGrid's "UndoAllChanges" updates all of the textboxes back to their original data but not a field with a CheckBox control&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ISWebGrid&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Caption&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;=" "&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Name&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="IncludeOutstanding"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;DataMember&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="IncludeOutstanding"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;ColumnType&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="CheckBox"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;EditType&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="Checkbox"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;FilterEditType&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="NoEdit"
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Width&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="25px"&lt;/span&gt;&lt;/span&gt;

&lt;p&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;/p&gt;   function &amp;lt;%=this.ClientID%&amp;gt;_SetEnabled(isEnabled) 
    { 
        try
        {
            // Enable/Disable
            var treatyClaimsGrid = ISGetObject("&amp;lt;%=this.grdTreatyClaims.ClientID%&amp;gt;");
            if (treatyClaimsGrid == null) { return; }
            if (isEnabled == false) 
            { 
                treatyClaimsGrid.UndoAllChanges();                 
            }
            treatyClaimsGrid.Enabled = isEnabled;            
        }
        catch (ex) { ShowJSException(ex); }
    }&lt;/pre&gt;</description></item></channel></rss>