﻿<?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 - Question of SelfReferencing WebGrid With ISDataSource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-of-SelfReferencing-WebGrid-With-ISDataSource/</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>Question of SelfReferencing WebGrid With ISDataSource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-of-SelfReferencing-WebGrid-With-ISDataSource/</link><pubDate>Wed, 30 Mar 2011 02:35:04 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Sorry for the late respond.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I was able to reproduce the same issue on my local end as shown in the following link: &lt;a href="http://demo.epoint.com.cn:8080/Website2/Default.aspx"&gt;http://demo.epoint.com.cn:8080/Website2/Default.aspx&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;After investigate the issue further, it was clear that the issue was caused by the usage of “_” (underline) character as the table-name.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In the ReadMe.txt file – enclosed as attachment in your previous post – “Frame_OU” table is created after execute following sql command.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Using this table, Frame_OU, will raise the problem. Next, I tried to create a new table named “FrameOU”; set the the new sql select statement command of the Northwind.xsd into the following; bind WebGrid to FrameOU table through ISDataSource; and view the page in browser.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The “FrameOU” table works smoothly without any error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This problem is considered as bug and has been forwarded to WebGrid development team to be fixed. It is filed under work item #955. Until the hotfix release, the quickest workaround is to avoid using _ (underline) character in the table-name.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I enclosed the modified sample as reference. Please try to open Default.aspx sample file and compare it to Default2.aspx in browser. The Default.aspx sample file is the sample that works.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps. Thank you.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Question of SelfReferencing WebGrid With ISDataSource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-of-SelfReferencing-WebGrid-With-ISDataSource/</link><pubDate>Mon, 28 Mar 2011 04:26:12 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;Hello Yudi, &lt;/p&gt;
&lt;p&gt;      Is the sql wrong?&lt;/p&gt;
&lt;p&gt;      You can see the sample by the url:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://demo.epoint.com.cn:8080/Website2/Default.aspx" target="_blank"&gt;http://demo.epoint.com.cn:8080/Website2/Default.aspx &lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks.&lt;/p&gt;</description></item><item><title>Question of SelfReferencing WebGrid With ISDataSource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-of-SelfReferencing-WebGrid-With-ISDataSource/</link><pubDate>Mon, 28 Mar 2011 02:51:16 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please try to configure the SQL Select Statement of your Northwind.xsd file into the following.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;select * from frame_OU where ParentGuid=@ParentGuid

SELECT     *
FROM       Frame_OU
WHERE      (ParentGuid IS NULL) OR
           (ParentGuid = ?)&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This should helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Question of SelfReferencing WebGrid With ISDataSource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-of-SelfReferencing-WebGrid-With-ISDataSource/</link><pubDate>Fri, 25 Mar 2011 22:38:05 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;&lt;span class="long_text" id="result_box" lang="undefined"&gt;&lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="154"&gt;Hello Yudi,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="long_text" lang="undefined"&gt;&lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="154"&gt;Problems remain.&lt;/span&gt; &lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="155"&gt;In order to&lt;/span&gt; &lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="156"&gt;reproduce the problem&lt;/span&gt;&lt;span title="点击可显示其他翻译" closure_uid_ctflc6="157"&gt;,&lt;/span&gt; &lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="158"&gt;I uploaded a&lt;/span&gt; &lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="159"&gt;sample code.&lt;/span&gt; &lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="160"&gt;Please read the&lt;/span&gt; &lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="161"&gt;ReadMe.txt.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="long_text" lang="undefined"&gt;&lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="161"&gt;The first grid raise error when expand the top level row,but the second grid work well.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="long_text" lang="undefined"&gt;&lt;span title="点击可显示其他翻译" class="hps" closure_uid_ctflc6="161"&gt;Thanks!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Question of SelfReferencing WebGrid With ISDataSource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-of-SelfReferencing-WebGrid-With-ISDataSource/</link><pubDate>Wed, 23 Mar 2011 23:29:36 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;From the snippet code, it seems that you are trying to implement “load-on-demand child retrieval” scenario where the load-on-demand data retrieval is handled at DataSource level, in this case is ISDataSource.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;A sample, SelfRef_LoadOnDemandChildRetrieval.aspx, that shows this such scenario is available in WebGridSamples project. The live sample version is available at &lt;a href="http://live.intersoftpt.com/cs/WebGrid/LoadonDemandChildRetrieval.aspx"&gt;http://live.intersoftpt.com/cs/WebGrid/LoadonDemandChildRetrieval.aspx&lt;/a&gt;?.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The sample demonstrates load on demand child data retrieval. The sample uses ISDataSource control to perform codeless load on demand data retrieval. Follow are the important things you need to know to perform codeless load on demand data retrieval:&lt;/span&gt;&lt;/p&gt;
&lt;ul style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;Enable caching to any medium. This setting is important for load on demand scenario.&lt;/li&gt;&lt;li&gt;Set the LoadOnDemand property in ISDataSource control to true.&lt;/li&gt;&lt;li&gt;In each table that will load data on demand, set the SelectChildRowMethod property. This method will be called during load on demand process and ParentKeyValues will be passed as parameter to the method specified.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please refer to this sample or the walkthrough article, Walkthrough: Creating Self Reference LoadOnDemand WebGrid, that can be found in WebGrid’s documentation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Question of SelfReferencing WebGrid With ISDataSource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Question-of-SelfReferencing-WebGrid-With-ISDataSource/</link><pubDate>Tue, 22 Mar 2011 23:17:42 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I create a aspx page with selfReferencing webGrid and ISDataSource,The first-level data can be displayed properly，when I click the plus icon to get second level data, raise this error.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;SQL：&lt;/p&gt;&lt;pre&gt;CREATE TABLE [dbo].[FrameOU](
	[OUGuid] [nvarchar](50) NOT NULL,
	[OUName] [nvarchar](50) NULL,
	[OrderNumber] [int] NULL,
	[HasChildOu] [int] NULL,
	[HasChildUser] [int] NULL,
	[ParentOUGuid] [nvarchar](50) NULL,
CONSTRAINT [PK_FrameOU] PRIMARY KEY NONCLUSTERED 
(
	[OUGuid] ASC
) ON [PRIMARY]
) &lt;/pre&gt;&lt;pre&gt;Thanks!&lt;/pre&gt;</description></item></channel></rss>