﻿<?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 - parent-child</title><link>http://www.intersoftsolutions.com/Community/Tags/parent-child/</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>Sample for WebGrid tree view wanted</title><link>http://www.intersoftsolutions.com/Community/Tags/parent-child/</link><pubDate>Wed, 01 Sep 2010 05:42:24 GMT</pubDate><dc:creator>Eric</dc:creator><category>InitializeSelfReferenceDataSource</category><category>Hierarchical</category><category>InitializeDataSource</category><category>tree view</category><category>parent-child</category><category>sample</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need a sample for a simple tree-view using WebGrid version 6.0.7200.218.&lt;/p&gt;
&lt;p&gt;It should use the event &lt;span style="font-size: 13px"&gt;InitializeSelfReferenceDataSource to load the next node level data. And InitializeDataSource should load the root node data. And the columns are created in the code, not hardcoded in aspx page.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;I think I have everything correct (too big to post here), but I just don't get the "plus" image to expand a node. How does WebGrid know if it needs to draw this plus image? What might be missing?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;In any case such a sample would be great. I found the samples that use EnableLoadOnDemand (not supported in mentioned version) and the found samples mostly use data connectors in the aspx file, instead of creating the data in InitializeDataSource.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Thanks&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>