﻿<?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 - ClientUI - How to set the VirtualPageSize and PagingSize for child rows</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-set-the-VirtualPageSize-and-PagingSize-for-child-rows/</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>How to set the VirtualPageSize and PagingSize for child rows</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-set-the-VirtualPageSize-and-PagingSize-for-child-rows/</link><pubDate>Wed, 12 Oct 2011 23:41:18 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;&lt;strong&gt;ClassicPaging&lt;/strong&gt;; &lt;strong&gt;None&lt;/strong&gt;; and &lt;strong&gt;VirtualLoad&lt;/strong&gt; represents how the data should be retrieved in WebGrid.&lt;/span&gt;&lt;/p&gt;
&lt;ul style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;ClassicPaging is defined by a set of navigation controls (such as First, Previous, Next, and Last) to control the active page. In ClassicPaging, the total number of visible rows is a constant number.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;To enable classic paging, simply set PagingMode to ClassicPaging. You can customize the number of visible rows in one page by setting the PagingSize property. By default, the PagingStyleUI is set to FirstPrevNextLast style, which will display a set of paging commands in the status bar.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;None means no paging. All rows will be loaded on first page load.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;VirtualLoad will load only a number of rows that specified in VirtualPageSize property. To enable VirtualLoad, simply open the WebGrid.NET Designer and set the PagingMode to VirtualLoad. The default value of VirtualPageSize is 50 which you can customize to fit your application's needs.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;You can choose which PagingMode method that will be use on your WebGrid. I’d like to suggest you to set the VirtualPageSize or PagingSize property based on the PagingMode method. For example: if &lt;strong&gt;ClassicPaging&lt;/strong&gt; is used, then you can customize the number of visible rows in one page by setting the &lt;strong&gt;PagingSize&lt;/strong&gt; property; or if &lt;strong&gt;VirtualLoad&lt;/strong&gt; is used, then you can customize the &lt;strong&gt;VirtualPageSize&lt;/strong&gt; property to fit your application’s need.&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 suggestion can help make your code easier to read, although declaring PagingSize and VirtualPageSize altogether will not cause any problems.&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 order to set the load on for the child rows, please kindly check the &lt;strong&gt;LoadonDemandChildRetrieval.aspx&lt;/strong&gt; sample file in WebGridSamples project or the live sample at &lt;a href="http://live.intersoftpt.com/cs/WebGrid/LoadonDemandChildRetrieval.aspx?noframe=1"&gt;http://live.intersoftpt.com/cs/WebGrid/LoadonDemandChildRetrieval.aspx?noframe=1&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 uses ISDataSource control to perform codeless load on demand data retrieval. Child rows data of its parent row will not be rendered to client on each loaded table. The child rows of a table will be retrieved transparently when user click on &amp;#43; sign to expand the child rows. This results in efficient information delivery by displaying necessary information and load more information transparently when needed, all without leaving the current state of the working page.&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’m afraid that it is not possible to have paging for child rows. The rules of paging will be implemented on the root table level. Suppose the parent has 100 child items, these items will be loaded once when user expands the parent.&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>How to set the VirtualPageSize and PagingSize for child rows</title><link>http://www.intersoftsolutions.com/Community/ClientUI/How-to-set-the-VirtualPageSize-and-PagingSize-for-child-rows/</link><pubDate>Wed, 12 Oct 2011 05:03:28 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If we set the VirtualPageSize=50 and PagingSize=50  ,only the parent rows will get loaded as per the size.Suppose the parent has 100 child items,if i expand the parent all the 100 child rows get loaded.&lt;/p&gt;
&lt;p&gt;How can i set the load on demand for the child rows.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>