﻿<?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 - virtual load custom -on-demand on webgrid 7</title><link>http://www.intersoftsolutions.com/Community/WebGrid/virtual-load-custom--on-demand-on-webgrid-7/</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>virtual load custom -on-demand on webgrid 7</title><link>http://www.intersoftsolutions.com/Community/WebGrid/virtual-load-custom--on-demand-on-webgrid-7/</link><pubDate>Fri, 27 Jan 2012 02:20:02 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;Custom VirtualLoad is one of VirtualLoad features which allow developer to setup a grid with their own implementation and logic for fetching the data. VirtualLoadwithCustomLoadonDemand.aspx sample file in WebGrid samples project can be used for reference. The sample demonstrates how to use custom load on demand to load more data in WebGrid. You need to specify following property.&lt;/span&gt;&lt;/p&gt;
&lt;ul style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;WebGrid&lt;br /&gt;PagingMode=”VirtualLoad”&lt;br /&gt;VirtualLoadMode=”Custom”&lt;/li&gt;&lt;li&gt;ISDataSourceTable&lt;br /&gt;EnablePaging=”True”&lt;br /&gt;MaximumRowsParameterName=”maximumRows”&lt;br /&gt;SelectCountMethod=”SelectCount”&lt;br /&gt;StartRowIndexParameterName=”startRowIndex”&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;After create the dataset, write codes that handle virtual load and the total row count in App_Code. The codes, let’s say dsNorthwind.cs class, containing Select Method with three parameters: startRowIndex, MaximumRows, and sortExpression; and SelectCount Method with one parameter: sortExpression.&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 exception says that ISDataSource is unable to find SelectCount method that has parameters: startRowIndex, MaximumRows, and sortExpression. Please try to set the SelectCountMethod property of ISDataSourceTable to “SelectCount” and set the SelectMethod property to “GetData”. Please refer to App_Code\dsNorthwind.cs file, in the attached sample, about how to define the GetData and SelectCount.&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 created a simple and working web application as sample. Please have the sample evaluated on your end and let me know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>virtual load custom -on-demand on webgrid 7</title><link>http://www.intersoftsolutions.com/Community/WebGrid/virtual-load-custom--on-demand-on-webgrid-7/</link><pubDate>Thu, 26 Jan 2012 11:12:52 GMT</pubDate><dc:creator>schau</dc:creator><description>&lt;p&gt;I'm trying to  achieve loading 150 records of 300 on my webgrid.  I'm getting this error below. Please help!&lt;/p&gt;
&lt;p&gt;ISDataSource 'ISDataSource1' Table [t_log_entry2] could not find a non-generic method 'SelectCount' that has parameters: startRowIndex, maximumRows, sortExpression. &lt;br /&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;/p&gt;
&lt;p&gt;Exception Details: System.InvalidOperationException: ISDataSource 'ISDataSource1' Table [t_log_entry2] could not find a non-generic method 'SelectCount' that has parameters: startRowIndex, maximumRows, sortExpression.&lt;/p&gt;
&lt;p&gt;Source Error: &lt;br /&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. &lt;/p&gt;
&lt;p&gt;Stack Trace: &lt;/p&gt;
&lt;p&gt;[InvalidOperationException: ISDataSource 'ISDataSource1' Table [t_log_entry2] could not find a non-generic method 'SelectCount' that has parameters: startRowIndex, maximumRows, sortExpression.]&lt;br /&gt;   ISNet.WebUI.DataSource.ISDataSourceView.#oj(Type type, String methodName, IDictionary allParameters, DataSourceOperation operation) &amp;#43;1613&lt;br /&gt;   ISNet.WebUI.DataSource.ISDataSourceView.#rj(IOrderedDictionary mergedParameters, DataSourceSelectArguments arguments, Boolean disposeInstance, Object&amp; instance) &amp;#43;166&lt;br /&gt;   ISNet.WebUI.DataSource.ISDataSourceView.ExecuteSelect(String selectMethod, DataSourceSelectArguments arguments) &amp;#43;2260&lt;br /&gt;   ISNet.WebUI.DataSource.ISDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) &amp;#43;83&lt;br /&gt;   ISNet.WebUI.DataSource.ISDataSourceView.Select(DataSourceSelectArguments arguments) &amp;#43;23&lt;br /&gt;   ISNet.WebUI.DataSource.ISDataSource.#pi(ISDataSourceTable table) &amp;#43;142&lt;br /&gt;   ISNet.WebUI.DataSource.ISDataSource.#pi(String tableName) &amp;#43;50&lt;br /&gt;   ISNet.WebUI.DataSource.ISDataSource.DoHierarchicalSelect(String tableName) &amp;#43;117&lt;br /&gt;   ISNet.WebUI.DataSource.ISDataSource.DoSelect(Boolean retrieveHierarchical) &amp;#43;46&lt;br /&gt;   ISNet.WebUI.WebGrid.WebGridDataSourceInfo.&amp;euro;Š() &amp;#43;148&lt;br /&gt;   ISNet.WebUI.WebGrid.WebGridDataSourceInfo.PerformSelect() &amp;#43;78&lt;br /&gt;   ISNet.WebUI.DataSourceInfo.DataBind() &amp;#43;41&lt;br /&gt;   ISNet.WebUI.DataSourceInfo.EnsureDataBound() &amp;#43;46&lt;br /&gt;   ISNet.WebUI.DataSourceInfo.set_RequiresDataBinding(Boolean value) &amp;#43;71&lt;br /&gt;   ISNet.WebUI.WebGrid.WebGrid.‡(Boolean forceBind) &amp;#43;1956&lt;br /&gt;   ISNet.WebUI.WebGrid.WebGrid. () &amp;#43;22&lt;br /&gt;   ISNet.WebUI.WebGrid.WebGrid.OnInitializeDataSource(Object dataSource) &amp;#43;135&lt;br /&gt;   ISNet.WebUI.WebGrid.WebGrid.OnLoad(EventArgs e) &amp;#43;183&lt;br /&gt;   System.Web.UI.Control.LoadRecursive() &amp;#43;74&lt;br /&gt;   System.Web.UI.Control.LoadRecursive() &amp;#43;146&lt;br /&gt;   System.Web.UI.Control.LoadRecursive() &amp;#43;146&lt;br /&gt;   System.Web.UI.Control.LoadRecursive() &amp;#43;146&lt;br /&gt;   System.Web.UI.Control.LoadRecursive() &amp;#43;146&lt;br /&gt;   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) &amp;#43;2207&lt;/p&gt;
&lt;p&gt;________________________________________&lt;br /&gt;Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>