﻿<?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 - Sample for WebGrid tree view wanted</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Sample-for-WebGrid-tree-view-wanted/</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/WebGrid/Sample-for-WebGrid-tree-view-wanted/</link><pubDate>Tue, 21 Feb 2012 21:00:36 GMT</pubDate><dc:creator>yudi</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;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;To Frank P:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Please allow me to assist you with the sample file of WebGrid which uses InitializeSelfReferenceDataSource. The sample file name is SelfHierarchyLoadOnDemand.aspx. It is available in WebGrid Tutorials project (point your mouse to start &amp;gt; All Programs &amp;gt; Intersoft WebUI Studio 2011 R2 SP1 &amp;gt; WebUI Studio for ASP.NET &amp;gt; WebGrid 7 &amp;gt; C#/VB Tutorials). After the project opened, expand the V3.5 node in the Solution Explorer and you should be able to find SelfHierarchyLoadOnDemand.aspx tutorial file in here.&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 further assistance or run into any problems regarding this feature, feel free to post it in here. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Sample for WebGrid tree view wanted</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Sample-for-WebGrid-tree-view-wanted/</link><pubDate>Tue, 21 Feb 2012 15:22:48 GMT</pubDate><dc:creator>qafrank1</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;Hello, Eric. I hope this finds you well - and still checking these boards.&lt;/p&gt;
&lt;p&gt;I am attempting to use an Oracle connection to load self-referencing data and cannot seem to get it just right. Where exactly did you find an examplue using - &lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;InitializeSelfReferenceDataSource&lt;/span&gt;&lt;/span&gt; - I am unable to locate a working example in the forums.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Sample for WebGrid tree view wanted</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Sample-for-WebGrid-tree-view-wanted/</link><pubDate>Wed, 01 Sep 2010 12:47:34 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;It also doesn't work, if the columns BlockId and ParentBlockId are hidden (Visible="false") and they do not have a Caption. I don't know why hidden columns must have Caption, but if you miss this attribute, the little plus-image for expanding the node also doesn't appear. That's probably another bug. As a workaround, just set Caption="".&lt;/p&gt;</description></item><item><title>Sample for WebGrid tree view wanted</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Sample-for-WebGrid-tree-view-wanted/</link><pubDate>Wed, 01 Sep 2010 09:15:08 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;If found my problem. I have this code:&lt;/p&gt;&lt;pre&gt;&amp;lt;RootTable DataKeyField="Block_Id"&amp;gt;
	&amp;lt;Columns&amp;gt;
		&amp;lt;WebGridColumn Name="Description" DataMember="Detail_Name" /&amp;gt;
		&amp;lt;WebGridColumn Name="BlockId" DataMember="Block_Id" /&amp;gt;
		&amp;lt;WebGridColumn Name="ParentBlockId" DataMember="Parent_Block_Id" /&amp;gt;
	&amp;lt;/Columns&amp;gt;
	&amp;lt;SelfReferencingSettings ChildDataMember="Parent_Block_Id" Enabled="True" ParentDataMember="Block_Id" ExpandColumnMember="Description" LoadOnDemand="True" /&amp;gt;
&amp;lt;/RootTable&amp;gt;
&lt;/pre&gt;
&lt;p&gt;The two attributes &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;ChildDataMember&lt;/span&gt;&lt;/span&gt; and &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;ParentDataMember&lt;/span&gt;&lt;/span&gt; both point to a &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;DataMember &lt;/span&gt;&lt;/span&gt;value of &lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;s. But &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;ExpandColumnMember&lt;/span&gt;&lt;/span&gt; (&lt;span style="color: #0000ff"&gt;"Description"&lt;/span&gt; above) is not the &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;DataMember&lt;/span&gt;&lt;/span&gt; of a &lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;, but the &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;Name&lt;/span&gt;&lt;/span&gt; of a &lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;. So for the example above I have to use &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;ExpandColumnMember&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="Description"&lt;/span&gt;&lt;/span&gt; instead of &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;ExpandColumnMember&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;="Detail_Name"&lt;/span&gt;&lt;/span&gt;. The code above shows the corrected version.&lt;/p&gt;
&lt;p&gt;Where I copied it from, both &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;Name&lt;/span&gt;&lt;/span&gt; and &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;DataMember&lt;/span&gt;&lt;/span&gt; were the same, so it worked there.&lt;/p&gt;
&lt;p&gt;Unfortunately WebGrid doesn't give any error message if &lt;span style="font-size: 13px; color: #ff0000"&gt;&lt;span style="font-size: 13px; color: #ff0000"&gt;ExpandColumnMember&lt;/span&gt;&lt;/span&gt; is wrong or cannot be not found; it simply won't show the "plus" to expand the node.&lt;/p&gt;</description></item><item><title>Sample for WebGrid tree view wanted</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Sample-for-WebGrid-tree-view-wanted/</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>