﻿<?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 - ISDataSource - ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</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>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Tue, 15 Dec 2009 21:13:57 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;I could not replicate the issue in our environment using all the latest build ISDataSource build 211 and WebUI Framework build 750.&lt;/p&gt;&lt;p&gt;Setting the EnableCaching to No does not produce an error after updating or deleting right after an insert operation.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Tue, 15 Dec 2009 03:12:21 GMT</pubDate><dc:creator>rogerchen.tangshuo@gmail.com</dc:creator><description>&lt;p&gt;I can set EnableCaching = No to avoid this issue now, but the other question "smaple2.aspx file, after add new shelf, then immediately do update or delete operate, then get some error. ". how can i solve this issue. Thanks.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Mon, 14 Dec 2009 22:54:50 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;This issue has also been acknowledge by our developer as bug. A bug report has been cerated for this issue. The above solution will work as a temporary workaround while a permanent fix is being worked on. We will inform you if there is any update or progress regarding this issue.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Mon, 14 Dec 2009 05:21:13 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;It seems the issue is caused because WebGrid is still using the previous cache data. In order to solve the issue, you could manually clear the cache during every addrow in the InitializePostback server side event. You will also need to invoke the WebGrid refresh client side event. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is the snippet for initialize postback event handler:&lt;/p&gt;&lt;pre&gt;protected void wgStorage_InitializePostBack(object sender, ISNet.WebUI.WebGrid.PostbackEventArgs e)&lt;br /&gt;{&lt;br /&gt;    &lt;br /&gt;    if (e.Action == PostBackAction.AddRow)&lt;br /&gt;    {&lt;br /&gt;        isdsStorage.Tables.GetNamedItem("TShelf").ClearCacheAndData();&lt;br /&gt;        wgStorage.ClientAction.InvokeScript("GridRefresh()");&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;Here is the snippet to refresh the WebGrid from the client side:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function GridRefresh() {&lt;br /&gt;    setTimeout(function() {&lt;br /&gt;        var grid = ISGetObject('wgStorage');&lt;br /&gt;        grid.Refresh();&lt;br /&gt;    }, 5);&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Sun, 13 Dec 2009 20:51:11 GMT</pubDate><dc:creator>rogerchen.tangshuo@gmail.com</dc:creator><description>&lt;p&gt;attachment is my sample.&lt;/p&gt;
&lt;p&gt;WebGrid version is 6.0.7200.218&lt;/p&gt;
&lt;p&gt;ISDataSource versiont is 1.0.1500.210&lt;/p&gt;
&lt;p&gt;ISFramkwork is 3.0.5000.705&lt;/p&gt;
&lt;p&gt;please read the readme.txt first then checked. thanks.&lt;/p&gt;</description></item><item><title>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Fri, 11 Dec 2009 05:15:31 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;I have recieved your response through technical@intersoftpt.com&lt;/p&gt;&lt;p&gt;Please use the InsertCode functionality if you would like to insert some code snippet. You could also send your code as an attachment.&lt;/p&gt;
&lt;p&gt;Regarding your questions:&lt;/p&gt;
&lt;p&gt;Based on the scenario you are trying to do, have you consider using ISDataSource with custom object, we have already provided a sample for hierarchical custom object with ISDataSource in the BindtoHierchicalCustomObject.aspx&lt;/p&gt;
&lt;p&gt;If not, do you mind sending us a sample project in order to help us replicate the issue easily.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Wed, 09 Dec 2009 23:46:35 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You will need to use the AddRow server side event handler for such scenario. It is not recommended to use this method to update the datasource. During the AddRow event handler, you could manually called the logic to handle the database operation and afterward, you will need to set the RetrunValue to false and invoke the RefreshGrid functionality to refresh the Grid data from the Database again.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is the snippet for AddRow server side event handler:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_AddRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)&lt;br /&gt;{&lt;br /&gt;    if (e.Row.Table.Name == "Customers")&lt;br /&gt;    {&lt;br /&gt;        DataRow drCust = (DataRow)e.Row.DataRow;&lt;br /&gt;        dsNorthwindTableAdapters.CustomersTableAdapter dtCust = new dsNorthwindTableAdapters.CustomersTableAdapter();&lt;br /&gt;        dtCust.Insert(drCust["CustomerID"].ToString(), &lt;br /&gt;            drCust["CompanyName"].ToString(),&lt;br /&gt;            drCust["ContactName"].ToString(),&lt;br /&gt;            drCust["ContactTitle"].ToString(),&lt;br /&gt;            drCust["Address"].ToString(),&lt;br /&gt;            drCust["City"].ToString(),&lt;br /&gt;            drCust["Region"].ToString(), &lt;br /&gt;            drCust["PostalCode"].ToString(),&lt;br /&gt;            drCust["Country"].ToString(), &lt;br /&gt;            drCust["Phone"].ToString(), &lt;br /&gt;            drCust["Fax"].ToString()&lt;br /&gt;        );&lt;br /&gt;&lt;br /&gt;        e.ReturnValue = false;&lt;br /&gt;&lt;br /&gt;        WebGrid1.ClientAction.InvokeScript("RefreshGrid()");&lt;br /&gt;    }&lt;/pre&gt;
&lt;p&gt;Here is the snippet for the RefreshGrid client side function:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;script type="text/javascript" language="javascript"&amp;gt;&lt;br /&gt;    function RefreshGrid() {&lt;br /&gt;        var grid = ISGetObject("WebGrid1");&lt;br /&gt;&lt;br /&gt;        grid.Refresh();&lt;br /&gt;    }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Wed, 09 Dec 2009 19:34:27 GMT</pubDate><dc:creator>rogerchen.tangshuo@gmail.com</dc:creator><description>&lt;p&gt;Thank you for your help, It can work now. but i have other question. I just want to use ISDataSource Binding Hierarchical Data, But Insert, Update, Delete Action i use webgrid_AddRow, webgrid_UpdateRow, webgrid_DeleteRow Method, But now get below infomation:&lt;/p&gt;
&lt;p&gt;"Updating is not supported by ISDataSource 'xxx' Table [aaa] unless the UpdateMethod is specifed"&lt;/p&gt;
&lt;p&gt;how can i do? can you gave me a sample? &lt;/p&gt;
&lt;p&gt;Regard&lt;/p&gt;</description></item><item><title>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Thu, 03 Dec 2009 23:34:13 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Step 2 to 7 in the walkthrough has already detailed the requiredsteps to create the new GetDataBy query. Following all the steps in the
article does not produce any error in my environment.&lt;/p&gt;
&lt;p&gt;For MS SqlServer or Oracle, you should modify the query in the article to:&lt;/p&gt;&lt;pre&gt;SELECT CustomerID, EmployeeID, Freight, OrderDate, OrderID, RequiredDate, ShipAddress, ShipCity, ShipCountry, ShipName, ShipPostalCode, ShipRegion, ShipVia, ShippedDate FROM Orders WHERE (CustomerID = @CustomerID)&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ISDataSource can't work on demand mode?</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/ISDataSource-cant-work-on-demand-mode/</link><pubDate>Thu, 03 Dec 2009 00:14:22 GMT</pubDate><dc:creator>rogerchen.tangshuo@gmail.com</dc:creator><description>&lt;p&gt;I follow the "ms-help://ISNet.WebUI.WebGrid.V6/ISNet.WebUI.WebGrid/Loading child rows on demand based on the selected parent row.html" help article to try use ISDataSource, but get the below error:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;ISDataSource 'ISDataSource1' Table [Orders] could not find a non-generic method 'GetDataBy' that has parameters: CustomerID.&lt;/em&gt; &lt;/p&gt;
&lt;p&gt;In 9 step&lt;/p&gt;
&lt;p&gt;9 Open &lt;strong&gt;ISDataSource Designer&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;table cols="2"&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td class="headercode" width="45%"&gt;&lt;strong&gt;Property&lt;/strong&gt;&lt;/td&gt;
&lt;td class="headercode"&gt;&lt;strong&gt;Value&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
&lt;td width="216"&gt;SelectChildRowMethod&lt;/td&gt;
&lt;td&gt;GetDataBy&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I not know set whick table's SelectChildRowMethod, now i set the Orders SelectChildRowMethod to GetDataBy. Is right?&lt;/p&gt;
&lt;p&gt;And how to set the parameters if database is MS SqlServer Or Oracle? the sample is all .mdb file data source. I think the ISDataSource is wonderful control, it can increase webgrid performance if binding Hierarchical data. but the help information not enough to use it.&lt;/p&gt;
&lt;p&gt;Regard&lt;/p&gt;</description></item></channel></rss>