﻿<?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 - WebGridTable.Rows Client Side Bug?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridTableRows-Client-Side-Bug/</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>WebGridTable.Rows Client Side Bug?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridTableRows-Client-Side-Bug/</link><pubDate>Tue, 11 May 2010 09:40:28 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', sans-serif; color: rgb(31,73,125); font-size: 9pt"&gt;Glad to hear that the information helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', sans-serif; color: rgb(31,73,125); font-size: 9pt"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGridTable.Rows Client Side Bug?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridTableRows-Client-Side-Bug/</link><pubDate>Mon, 10 May 2010 18:00:48 GMT</pubDate><dc:creator>acunningham</dc:creator><description>&lt;p&gt;Yudi,&lt;/p&gt;&lt;p&gt;Thanks of the response.  I've worked around the issue of the ".Rows" property of the WebGridTable always being null (seems kind of pointless to document this property if it doesn't actually work) but my solution is similar to yours in that I have to iterate through all the RootTable rows and call GetChildRows() methods.&lt;/p&gt;&lt;pre&gt;        for(var i = 0; i &amp;lt; totalRows; i&amp;#43;&amp;#43;)&lt;br /&gt;        {&lt;br /&gt;            var childRows = grid.RootTable.GetRow(i).GetChildRows();&lt;br /&gt;            for(var j = 0; j &amp;lt; childRows.length; j&amp;#43;&amp;#43;)&lt;br /&gt;            {&lt;br /&gt;                if(childRows[j].GetCells().GetNamedItem("StatusID").Value != 352 &amp;amp;&amp;amp; // Completed&lt;br /&gt;                   childRows[j].GetCells().GetNamedItem("StatusID").Value != 353 &amp;amp;&amp;amp; // Failed &lt;br /&gt;                   childRows[j].GetCells().GetNamedItem("StatusID").Value != 354)   // Peril not found.&lt;br /&gt;                { &lt;br /&gt;                    window.setTimeout("WebGrid_RefreshGrid('grdEDMPortfolios');", 15000);&lt;br /&gt;                    return;&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;        }&lt;/pre&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;&amp;nbsp;</description></item><item><title>WebGridTable.Rows Client Side Bug?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridTableRows-Client-Side-Bug/</link><pubDate>Mon, 10 May 2010 17:54:06 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 to suggest you a better way to get the child row by using &lt;strong&gt;GetChildRows&lt;/strong&gt; object based on defined relations.&lt;br /&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;...
var childRows = row.GetChildRows("Orders");
...&lt;/pre&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;For more detail information about the application of GetChildRows, please refer to &lt;strong&gt;Client_ProgrammaticUI_Hierarchical.aspx&lt;/strong&gt; WebGrid sample file that can be found in WebGridSamples project (&lt;strong&gt;start &amp;gt; All Programs &amp;gt; Intersoft WebUI Studio 2009 R2 SP1 &amp;gt; WebUI Studio for ASP.NET &amp;gt; WebGrid 7 &amp;gt; C# Samples&lt;/strong&gt;).&lt;/span&gt; 
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGridTable.Rows Client Side Bug?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGridTableRows-Client-Side-Bug/</link><pubDate>Mon, 10 May 2010 13:23:49 GMT</pubDate><dc:creator>acunningham</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a hierarchical table structure in my WebGrid where there is one RootTable and one ChildTable.  I want to iterate through all rows of my child table to look for certain "StatusID" column values and if found set the WebGrid to automatically refresh after a set period of time, when I will perform the check again.&lt;/p&gt;
&lt;p&gt;The code I have written is as follows:&lt;/p&gt;&lt;pre&gt;        var grid = ISGetObject("grdEDMPortfolios");&lt;br /&gt;        &lt;br /&gt;        var childRows = &lt;span style="font-size: 11pt;"&gt;&lt;strong&gt;grid.RootTable.ChildTables[0].Rows;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;        for(var i = 0; i &amp;lt; childRows.length; i&amp;#43;&amp;#43;)&lt;br /&gt;        {&lt;br /&gt;            alert(childRows[i].GetCells().GetNamedItem("StatusID").Value);&lt;br /&gt;        }&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;This does not work however since the "ChildTables[0].Rows" property never returns the child rows as described in your WebGrid documentation, it always returns null.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Is this a bug?  And how do I do this without have to iterate though each RootTable row then having to get each child row which seems like overkill.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adrian.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>