﻿<?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 - Expand All Child rows</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Expand-All-Child-rows/</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>Expand All Child rows</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Expand-All-Child-rows/</link><pubDate>Sun, 19 Sep 2010 23:47:26 GMT</pubDate><dc:creator>niven</dc:creator><description>&lt;p&gt;Hi Daniele,&lt;/p&gt;
&lt;p&gt;Please find the attach file to see how to expand all the child row.&lt;/p&gt;
&lt;p&gt;I'm using a server side. If you want to use a client side, you need to open all the child one by one and manually defined the row.ExpandChildRow() to each child.&lt;/p&gt;
&lt;p&gt;Please let me know if the sample work well as you wanted.&lt;/p&gt;
&lt;p&gt;Thank you and have a nice day.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niven Prasetya&lt;/p&gt;</description></item><item><title>Expand All Child rows</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Expand-All-Child-rows/</link><pubDate>Fri, 17 Sep 2010 05:09:49 GMT</pubDate><dc:creator>danielerm78</dc:creator><description>&lt;p&gt;Hi I found this in the documentation to expand a Child:&lt;/p&gt;
&lt;p&gt;Is there a way to do tha same thing but for all the rows in one time?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Daniele Barbini&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;function ExpandChild()&lt;br /&gt;{&lt;br /&gt; var grid = 
ISGetObject("WebGrid1");&lt;br /&gt; var selObj = 
grid.GetSelectedObject();&lt;br /&gt;&lt;br /&gt; if (selObj == null)&lt;br /&gt; 
{&lt;br /&gt; alert("Please select a row");&lt;br /&gt; 
return;&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt; var row = 
selObj.GetRowObject(); &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; // demonstrate server-side alike object model 
hierarchy&lt;br /&gt; if (row.Table.ChildTables.length &amp;gt; 
0)&lt;br /&gt; {&lt;br /&gt; if 
(!row.ChildExpanded)&lt;br /&gt; &lt;span style="color: red;"&gt;row.ExpandChildRow();&lt;br /&gt;&lt;/span&gt; 
else&lt;br /&gt; alert("Row already 
expanded!");&lt;br /&gt; }&lt;br /&gt; 
else&lt;br /&gt; alert("This row doesn't have any child 
rows!");&lt;br /&gt; }&lt;br /&gt;} &lt;/div&gt;</description></item></channel></rss>