﻿<?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 - Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</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>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Tue, 12 Nov 2013 09:49:54 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;How the classic paging will help?&lt;/p&gt;
&lt;p&gt;Because it is also binding the entire data.&lt;/p&gt;
&lt;p&gt;We want to achieve the binding of only specified records.&lt;/p&gt;
&lt;p&gt;Please add this paging requirement as a feature request?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Madhavan&lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Sun, 18 Aug 2013 22:57:54 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Apologize for the delay in sending this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;When enabled, VirtualLoad paging feature work as follow: initially load 50 rows (or n number of rows as specified in VirtualPageSize property); as user scroll the data forward more data will be retrieved from server transparently and virtually; previously displayed data is retained along with the currently required page.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;On the custom mode, developers need to specify the data fetching logic. Per your request, you will need to query the data so that it will return n rows of data as specified in VirtualPageSize property (not load top n rows). I use following select query to return n rows of data.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;"WITH NumberedMyTable AS ( SELECT ProductId, ProductName, ROW_NUMBER() OVER (ORDER BY ProductId) AS RowNumber FROM Products ) SELECT ProductId, ProductName FROM NumberedMyTable WHERE RowNumber BETWEEN " &amp;#43; fromRown &amp;#43; " AND " &amp;#43; toRowm,&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Next, we will need to combine this data with the previously displayed data. To obtain the previously displayed data, we can invoke the GetCachedDataSource() method. This method returns the data source object that kept in cache.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Alternatively, you can try to use the classic paging mode. Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Fri, 16 Aug 2013 05:46:20 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;Please advice us with update on this incident.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Sun, 23 Jun 2013 20:56:55 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I haven’t heard any news from the team yet, but I will surely updates in the next couple of days.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Thu, 20 Jun 2013 07:29:05 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;Anything you heard from your developement team.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Wed, 12 Jun 2013 05:43:07 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;In my opinion, it seems that you wish to use the custom virtual load paging but doesn’t want to use the “&lt;em&gt;select top n rows from [tablename]&lt;/em&gt;” as the select query of WebGrid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I have managed to create a simple sample of custom virtual load-enabled WebGrid where the select query is no longer use “select top n rows from [tablename]”. The select query is made based on the requirement specified in your post (on June 11, 2013).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;However, I’m not lucky enough to have the expected result on WebGrid. The first time I click the button to load more data, instead of showing record (for example) 1 – 100, WebGrid shows data 51 – 100.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I will have this discussed with WebGrid development team to find out whether it is ok or not to set the WebGrid’s data source in such way when custom virtual load is enabled. I will get back to you as soon as I heard something from the team regarding this.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Tue, 11 Jun 2013 08:42:54 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;Is there any way we can acheive the following scenario?&lt;/p&gt;
&lt;p&gt;Say we have 50000 type of records.&lt;/p&gt;
&lt;p&gt;Say our paging size is 50.&lt;/p&gt;
&lt;p&gt;1.First on load webgrid should load 50 records.(Database call should be for retrieving 50 records).&lt;/p&gt;
&lt;p&gt;2.On click of next Webgrid should load 50-100 records.(Database call should be for retrieving 50 records).&lt;/p&gt;
&lt;p&gt;3.On click of next Webgrid should load 100-150 records.(Database call should be for &lt;br&gt;&lt;/br&gt;retrieving 50 records).&lt;/p&gt;
&lt;p&gt;Please advice us achieving the above mentioned scenario will benefit us heavily.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Regards,&lt;br&gt;&lt;/br&gt;Madhavan&lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Mon, 03 Jun 2013 22:10:40 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;WebGrid allows you to create efficient multiple rows selection grid interface quickly using WebGridColumn’s IsRowChecker property. In order to obtain the checked rows can be done via server side or client side.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;In the provided snippet code, GetCheckedRows() method is used. This method returns the checked rows for the WebGridTable. The return value of this method is object of HTML RowElement Collection.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;On the custom mode of virtual load, developers need to specify the data fetching logic. Sorting, editing, and all-other data aware functionalities can work in this mode. However, checking all rows (by checking the IsRowChecker column header) requires all rows to be loaded.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Mon, 03 Jun 2013 04:43:29 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;
&lt;p&gt;One more point to add We have multi select functionality.&lt;/p&gt;
&lt;p&gt;We have option to select items across multiple pages and perform the operation based on the selected check box and other column values for the selected row,&lt;/p&gt;
&lt;p&gt;SO how this will work in custom virtual mode.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Madhavan&lt;/p&gt;&lt;pre&gt;for (int j = 0; j &amp;lt; rowsCount; j&amp;#43;&amp;#43;)
                    {
                        if (WebGrid1.RootTable.Rows[j] != null)
                        {
                            if (WebGrid1.RootTable.Rows[j].Type == RowType.Record)
                            {
                                if (WebGrid1.RootTable.Rows[j].KeyValue.ToString() == WebGrid1.RootTable.GetCheckedRows()[i].ToString())
                                {
                                    string workflow = WebGrid1.RootTable.Rows[j].Cells.GetNamedItem("Workflow").Text;
                                    Guid WorkitemId = new Guid(WebGrid1.RootTable.GetCheckedRows()[i].ToString());
                                    Skelta.HWS.WorkItem workitem = new Skelta.HWS.WorkItem(new Skelta.Core.WorkflowObject(workflow, new Skelta.Core.ApplicationObject(_ApplicationName)), WorkitemId);
                                    if (multiSelectQueueId == Guid.Empty)
                                    {
                                        if (workitem.QueueId != Guid.Empty)
                                        {
                                            multiSelectQueueId = workitem.QueueId;
                                        }
                                    }
                                    workitemObj.Add(workitem);
                                }
                                else
                                {
                                    continue;
                                }
                            }&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Thu, 30 May 2013 05:13:14 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Thank you for your feedback.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I made a minor modification to the sample – which is enclosed on my previous post (May 27, 2013) – and run it in browser. VirtualPageSize property is set to “10”. Initially, the select command of OleDbDataAdapter will select top 10 of Order Details. Next, when user loads more data, it will select top 20 of Order Details and so on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;WebGrid has a mechanism to handle its custom virtual load paging.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please try to open Developer Tools of your IE browser and enable the network traffic capturing. It will show you the XML which is returned from the server. The XML contains information of rows when user loads more data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Initially, the XML will returns with 10 rows.&lt;/span&gt;&lt;/p&gt;&lt;img height="263" width="529" src="http://www.intersoftpt.com/Community/Attachments/3643/SummaryView1.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img height="263" width="529" src="http://www.intersoftpt.com/Community/Attachments/3643/DetailView1.jpg" /&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Next, when user loads more data, instead of returning XML with 20 rows, the XML will contains 10 rows (the information of rows #11 to #20) and so on.&lt;/span&gt;&lt;/p&gt;&lt;img height="263" width="529" src="http://www.intersoftpt.com/Community/Attachments/3643/SummaryView2.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img height="263" width="529" src="http://www.intersoftpt.com/Community/Attachments/3643/DetailView2.jpg" /&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Each POST takes only one hundred something millisecond (less than one second).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Pagingloadmode="VirtualLoadmode and Custom Virtual load mode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/VirtualLoadModeCustom/</link><pubDate>Wed, 22 May 2013 08:12:36 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;We are trying to use Custom VirtualLoadMode for the webgrid as we are having performance issues&lt;/p&gt;
&lt;p&gt;with large number of records like 20000.&lt;/p&gt;
&lt;p&gt;We are using initialize data source event for binding data to the webgrid.&lt;/p&gt;
&lt;p&gt;we have to use our api for populating datatable.Can you please provide us an sample for implementing custom virtualloadmode and Pagingloadmode="VirtualLoadmode".all the existing samples are using adapters. we wnat sample with plain APis.&lt;/p&gt;&lt;pre&gt;void WebGrid1_InitializeDataSource(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
    {
        DataTable itemsDataTable = null;
        itemsDataTable = _ListItems.GetRecords(); //Api for getting datatable
        e.DataSource = itemsDataTable;
    }&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;p&gt;Madhavan &lt;/p&gt;</description></item></channel></rss>