﻿<?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 - Self-referencing Webgrid Error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Self-referencing-Webgrid-Error/</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>Self-referencing Webgrid Error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Self-referencing-Webgrid-Error/</link><pubDate>Sun, 08 Nov 2009 14:28:25 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>ISDataSource</category><category>Load on Demand</category><description>&lt;p&gt;James, I got it to work.  Except that it only goes 1 generation deep.&lt;img style="border: medium none ;" src="../../../WebResources/Images/Community/Editor/smiley1.gif" id="" /&gt; &lt;img style="border: medium none ;" src="../../../WebResources/Images/Community/Editor/smiley1.gif" id="" /&gt; &lt;/p&gt;</description></item><item><title>Self-referencing Webgrid Error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Self-referencing-Webgrid-Error/</link><pubDate>Fri, 06 Nov 2009 22:15:20 GMT</pubDate><dc:creator>james</dc:creator><category>ISDataSource</category><category>Load on Demand</category><description>&lt;p&gt;George,&lt;/p&gt;&lt;p&gt;When using SQL Server, you need to use the named parameter such as @ReportsTo. For instance,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;SELECT      *
FROM          Employees
WHERE      (ReportsTo IS NULL) OR
                        (ReportsTo = @ReportsTo)&lt;/pre&gt;
&lt;p&gt;Make sure the method name is properly assigned to the &lt;b&gt;SelectSelfReferenceRowMethod&lt;/b&gt; in your ISDataSource, then your page should run properly. Note: I've tried to use SQL and it works fine using the above query.&lt;/p&gt;
&lt;p&gt;Hope this helps, &lt;br /&gt;James.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Self-referencing Webgrid Error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Self-referencing-Webgrid-Error/</link><pubDate>Fri, 06 Nov 2009 09:02:09 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>ISDataSource</category><category>Load on Demand</category><description>&lt;p&gt;James I DID Not get it working.&lt;/p&gt;</description></item><item><title>Self-referencing Webgrid Error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Self-referencing-Webgrid-Error/</link><pubDate>Thu, 05 Nov 2009 20:09:23 GMT</pubDate><dc:creator>james</dc:creator><category>ISDataSource</category><category>Load on Demand</category><description>&lt;p&gt;Hi George, thanks for your response.&lt;/p&gt;&lt;p&gt;I presume you've managed to get it work in SQL Server? Please let me know if you still have other issues.&lt;/p&gt;
&lt;p&gt;James.&lt;/p&gt;</description></item><item><title>Self-referencing Webgrid Error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Self-referencing-Webgrid-Error/</link><pubDate>Thu, 05 Nov 2009 07:31:36 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>ISDataSource</category><category>Load on Demand</category><description>&lt;p&gt;The sample you provide uses a microsoft Access database.  I am using SQL Server, and it does not accept a paremeter in the form (ParentID=?) but rather (&lt;a href="mailto:ParentID=@Param1"&gt;ParentID=@Param1&lt;/a&gt;)&lt;/p&gt;</description></item><item><title>Self-referencing Webgrid Error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Self-referencing-Webgrid-Error/</link><pubDate>Thu, 05 Nov 2009 01:37:02 GMT</pubDate><dc:creator>james</dc:creator><category>ISDataSource</category><category>Load on Demand</category><description>&lt;p&gt;Hi George,&lt;/p&gt;&lt;p&gt;The issue is not in the WebGrid, but I think on the ISDataSource configuration. When load on demand is used and the Grid is bound to ISDataSource, you need to configure the &lt;b&gt;SelectSelfReferenceRowMethod&lt;/b&gt; property in your ISDataSourceTable, which points to an existing method defined in your table adapter.&lt;/p&gt;
&lt;p&gt;To understand further, see the &lt;b&gt;SelfRef_LoadOnDemandChildRetrieval.aspx&lt;/b&gt; sample in WebGrid C# Solution. Then open the &lt;b&gt;dsNorthwind_LoadOnDemand.xsd &lt;/b&gt;and notice the &lt;b&gt;GetDataBy&lt;/b&gt; method defined in the table adapter, which is used to retrieve the self referencing children.&lt;/p&gt;
&lt;p&gt;If you need a walkthrough, paste this url in your VS Document Explorer,  &lt;span style="text-decoration: underline; "&gt;ms-help://ISNet.WebUI.WebGrid.V7/ISNet.WebUI.WebGrid/Creating Self Reference LoadOnDemand WebGrid.html&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;Hope this helps,&lt;/div&gt;
&lt;p&gt;James.&lt;/p&gt;</description></item><item><title>Self-referencing Webgrid Error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Self-referencing-Webgrid-Error/</link><pubDate>Wed, 04 Nov 2009 20:42:40 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>ISDataSource</category><category>Load on Demand</category><description>&lt;p&gt;My webgrid errors when I use the self-referencing feature.  Click the &lt;a href="http://www.screencast.com/users/GKFahnbulleh/folders/Jing/media/280b9de8-3f13-46ef-b500-b320b540831b" target="_blank"&gt;Link&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>