﻿<?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 - WebGrid Hierarchical Data with ISLinqDataSource or LinqDataSources</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Hierarchical-Data-with-ISLinqDataSource-or-LinqDataSources/</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>WebGrid Hierarchical Data with ISLinqDataSource or LinqDataSources</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Hierarchical-Data-with-ISLinqDataSource-or-LinqDataSources/</link><pubDate>Sun, 14 Mar 2010 23:43:01 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Hierarchical</category><category>webgrid 7</category><category>LinqDataSource</category><description>The next build of WebGrid 7 will be released in a few weeks which already include this feature. The method to bound Hierachical LINQ DataSource to WebGrid will be similar to the WebGrid documentation article "Outbound Mode".&lt;br /&gt;&lt;br /&gt;Here is the snippet for InitializeDataSource and PreInitialize event handler for Northwind data:&lt;br /&gt;&lt;pre&gt;protected void wgTest_InitializeDataSource(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)&lt;br /&gt;{&lt;br /&gt;    NorthwindV2DataContext northwind = new NorthwindV2DataContext();&lt;br /&gt;&lt;br /&gt;    var query = from c in northwind.Customers&lt;br /&gt;                select c;&lt;br /&gt;&lt;br /&gt;    e.DataSource = query.ToList();&lt;br /&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;pre&gt;protected void wgTest_PreInitialize(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;    NorthwindV2DataContext northwindContenxt = new NorthwindV2DataContext();&lt;br /&gt;    &lt;br /&gt;    // assign OnPreInitialize event in ASPX&lt;br /&gt;    // defines the Object Relations&lt;br /&gt;    ArrayList objectRelations = new ArrayList();&lt;br /&gt;    objectRelations.Add(new WebGridObjectRelation(&lt;br /&gt;            typeof(List&amp;lt;Customer&amp;gt;), "CustomerID", "Orders",&lt;br /&gt;            typeof(List&amp;lt;Order&amp;gt;), "CustomerID"));&lt;br /&gt;&lt;br /&gt;    // defines the Parent and Child Type information&lt;br /&gt;    // objectTypes contains 3 object array: The parent collection type,&lt;br /&gt;    // child item type, the primary keys of child collection&lt;br /&gt;    // Primary keys can be string (if only 1 primary key defined),&lt;br /&gt;    // or array of string for multiple primary keys scenario.&lt;br /&gt;    ArrayList objectTypes = new ArrayList();&lt;br /&gt;    objectTypes.Add(new object[] {&lt;br /&gt;        typeof(List&amp;lt;Customer&amp;gt;), typeof(Customer), "CustomerID"});&lt;br /&gt;    objectTypes.Add(new object[] {&lt;br /&gt;        typeof(List&amp;lt;Order&amp;gt;), typeof(Order), "OrderID"});&lt;br /&gt;&lt;br /&gt;    // assign the required definitions through SetObjectRelations method&lt;br /&gt;    // the SetObjectRelations need to be called in new PreInitialize method&lt;br /&gt;    // since it needs to be initialized in earliest phase.&lt;br /&gt;    wgTest.SetObjectRelations(objectRelations, objectTypes);&lt;br /&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;
</description></item><item><title>WebGrid Hierarchical Data with ISLinqDataSource or LinqDataSources</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Hierarchical-Data-with-ISLinqDataSource-or-LinqDataSources/</link><pubDate>Wed, 24 Feb 2010 21:19:33 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Hierarchical</category><category>webgrid 7</category><category>LinqDataSource</category><description>&lt;p&gt;Sorry for the late reply, you are correct currently WebGrid 7 has not supported this feature yet. However an enchancement is being developed and is scheduled to be ready in the next WebGrid 7 build.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Hierarchical Data with ISLinqDataSource or LinqDataSources</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Hierarchical-Data-with-ISLinqDataSource-or-LinqDataSources/</link><pubDate>Wed, 24 Feb 2010 10:17:37 GMT</pubDate><dc:creator>nicola.lorusso@loransrl.net</dc:creator><category>Hierarchical</category><category>webgrid 7</category><category>LinqDataSource</category><description>&lt;p&gt;Have you planned a update for this issue? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;We need this function before buying WebGrid 7, how much time we must wait?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks, Nicola&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Hierarchical Data with ISLinqDataSource or LinqDataSources</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Hierarchical-Data-with-ISLinqDataSource-or-LinqDataSources/</link><pubDate>Wed, 17 Feb 2010 05:11:15 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>Hierarchical</category><category>webgrid 7</category><category>LinqDataSource</category><description>&lt;p&gt;I am stil discussing this issue with our developer. I will inform you if there is any update / progress regrading this issue.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid Hierarchical Data with ISLinqDataSource or LinqDataSources</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Hierarchical-Data-with-ISLinqDataSource-or-LinqDataSources/</link><pubDate>Mon, 15 Feb 2010 21:50:34 GMT</pubDate><dc:creator>cymdiaz</dc:creator><category>Hierarchical</category><category>webgrid 7</category><category>LinqDataSource</category><description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;Can you tell me how to populate a hierarchical datagrid using LinqDataSources?  Visual Studio 2010 RC, Windows 7,.  As far as I can tell from the documentation this feature is not supported.  I don't think this can be true for WebGrid 7, I must be mistaken, but cannot find how to do it.  &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Carlos&lt;/p&gt;</description></item></channel></rss>