﻿<?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 - Prevent RowChecker from checking rows that are not expanded in a hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Prevent-RowChecker-from-checking-rows-that-are-not-expanded-in-a-hierarchical-grid/</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>Prevent RowChecker from checking rows that are not expanded in a hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Prevent-RowChecker-from-checking-rows-that-are-not-expanded-in-a-hierarchical-grid/</link><pubDate>Wed, 18 Sep 2013 02:55:07 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebGrid</category><category>Hierarchical</category><category>RowChecker</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your reply.&lt;br /&gt;&lt;br /&gt;In my local end, the result is not an endless loop, but it takes more time to WebGrid to finish the checking process, indeed.&lt;br /&gt;&lt;br /&gt;Perhaps you should use: “Checked” attribute to validate whether the row is already checked or not. Because there is no IsChecked() method in row object.&lt;br /&gt;&lt;br /&gt;You could see / get the WebGrid’s documentation from your local environment, “Start Menu -&amp;gt; All Programs -&amp;gt; Intersoft Premier Studio 2013 R1 -&amp;gt; WebUI Studio for ASP.NET -&amp;gt; WebGrid 8 -&amp;gt; WebGrid 8 Documentation”.&lt;br /&gt;&lt;br /&gt;You also could get / download the WebGrid’s documentation from this link below:&lt;br /&gt;-http://intersoftpt.com/Support/WebGrid/Documentation/&lt;br /&gt;-http://intersoftpt.com/Support/WebGrid/WebGrid.chm&lt;br /&gt;&lt;br /&gt;To know whether the child row is collapse or expanded, you could use “ChildExpanded” attribute.&lt;br /&gt;The “ChildExpanded” attribute will have False if the child row is collapse and vice versa.&lt;br /&gt;&lt;br /&gt;You could use GetParentRow() method to validate whether the row has a parent or not.&lt;br /&gt;Here’s the example snippet code how-to use the GetParentRow() method:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnRowSelect(controlId, tblName, rowIdx, rowElm) {    var WebGrid1 = ISGetObject(controlId);
    var parentRow = WebGrid1.GetSelectedObject().GetRowObject().GetParentRow();
    if (parentRow) {
        alert("This row have parent row ");
    }
    else {
        alert("This row doesn't have parent row ");
    }
    return true; 
}&lt;/pre&gt;
&lt;p&gt;I use the GetParentRow() method in OnRowSelect client side event.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Prevent RowChecker from checking rows that are not expanded in a hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Prevent-RowChecker-from-checking-rows-that-are-not-expanded-in-a-hierarchical-grid/</link><pubDate>Tue, 17 Sep 2013 09:50:11 GMT</pubDate><dc:creator>mlacy1358</dc:creator><category>WebGrid</category><category>Hierarchical</category><category>RowChecker</category><description>&lt;p&gt;Also tried this:  &lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;if (r.Checked &amp;&amp; !r.Visible) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;
&lt;p&gt;				   r.Uncheck();&lt;/p&gt;
&lt;p&gt;			}&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;however, even if a row (r) is collapsed and so is not visible, it's Visible property still returns True....so this does not work.  Is there a way to tell if a leaf row is collapsed or expanded and also if a row has a parent?&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;</description></item><item><title>Prevent RowChecker from checking rows that are not expanded in a hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Prevent-RowChecker-from-checking-rows-that-are-not-expanded-in-a-hierarchical-grid/</link><pubDate>Tue, 17 Sep 2013 09:37:37 GMT</pubDate><dc:creator>mlacy1358</dc:creator><category>WebGrid</category><category>Hierarchical</category><category>RowChecker</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for this, getting close however I think this results in an endless loop as the checkbox checked event is unchecking checkboxes which in turn calls the checkbox checked event which unchecks checkboxes....etc..&lt;/p&gt;
&lt;p&gt;What might solve it is if we can test if the checkbox is checked before we uncheck it....this way once the function unchecks a box, it will never touch that box again.&lt;/p&gt;
&lt;p&gt;Something like this:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;if (row.IsChecked() &amp;&amp; !row.ChildExpanded) {&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Just not sure about the IsChecked() piece..is that valid?  Should I use Checked?  Or something else?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Also, now that we have the latest version of the WebGrid, I can no longer find the API documentation.  You used to distirbute the client-side and server-side API docs...where are those now?   They are essential for doing development with your tools.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Prevent RowChecker from checking rows that are not expanded in a hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Prevent-RowChecker-from-checking-rows-that-are-not-expanded-in-a-hierarchical-grid/</link><pubDate>Mon, 16 Sep 2013 23:27:46 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebGrid</category><category>Hierarchical</category><category>RowChecker</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for waiting.&lt;br /&gt;&lt;br /&gt;I found a work around that perhaps you could use.&lt;br /&gt;&lt;br /&gt;I add a couple of validation codes in OnCheckBoxClick client side event. &lt;br /&gt;The code checked whether the child row is expanded or not. The WebGrid will uncheck the checkbox, if the row isn’t expanded.&lt;br /&gt;&lt;br /&gt;Here’s the example snippet code in OnCheckBoxClick:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnCheckBoxClick(controlId, tblName, colName, checkboxValue, originalCheckBoxValue) {    var WebGrid1 = ISGetObject(controlId);
    var tableWebGrid1 = WebGrid1.Tables[tblName];
    var tableRowObject = tableWebGrid1.ToRowObject(WebGrid1.CheckedRowContext);
            
    if (!tableRowObject.ChildExpanded) {
        tableRowObject.Uncheck();
    }
}&lt;/pre&gt;
&lt;p&gt;I also attached the sample about how I implement the code (based on Hierarchical.aspx WebGrid Sample). To run the sample, just simply add the sample to the WebGrid Solution Sample.&lt;br /&gt;&lt;br /&gt;Please kindly have review on the sample and let me know your response.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Prevent RowChecker from checking rows that are not expanded in a hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Prevent-RowChecker-from-checking-rows-that-are-not-expanded-in-a-hierarchical-grid/</link><pubDate>Mon, 16 Sep 2013 07:34:21 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebGrid</category><category>Hierarchical</category><category>RowChecker</category><description>Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your question regarding WebGrid.&lt;br /&gt;&lt;br /&gt;I will try to find the work around for your current scenario and I will be back as soon as possible.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.</description></item><item><title>Prevent RowChecker from checking rows that are not expanded in a hierarchical grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Prevent-RowChecker-from-checking-rows-that-are-not-expanded-in-a-hierarchical-grid/</link><pubDate>Fri, 13 Sep 2013 17:12:55 GMT</pubDate><dc:creator>mlacy1358</dc:creator><category>WebGrid</category><category>Hierarchical</category><category>RowChecker</category><description>&lt;p&gt;We are using the latest version of the Intersoft WebGrid.  We have a self-referencing hierarchical grid that has RowChecker enabled so there is a "check all" check box in the column header of the checkbox column that when checked will check all of the rows in the grid.   The issue is that this is a hierarchical grid and so at any time, one folder may be expanded showing the child rows but all the other parent rows are collapsed (so their child rows are not visible).  When the RowChecker "check all" checkbox in the column header is selected, all the rows are checked, even those that are collapsed and so are not visible.  Is there a way to tell the RowChecker to only check the child rows that are visible and to not check the child rows that are in a collapsed state and so are not visible?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>