﻿<?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 - Custom Paging and Hierarchical Data Source</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-Paging-and-Hierarchical-Data-Source/</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>Custom Paging and Hierarchical Data Source</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-Paging-and-Hierarchical-Data-Source/</link><pubDate>Thu, 15 Apr 2010 23:30:35 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>"custom paging" hierarchical "data source"</category><description>You could analyze the provided WebGrid sample, BindtoHierchicalCustomObject.aspx, for the custom object hierarchical data in ISDataSource and WebGrid. Regarding the custom paging, the article titled "&lt;em&gt;Walkthrough: Implementing Custom Paging using ISDataSource&lt;/em&gt;" in the WebGrid documentation already detailed Custom Paging and ISDataSource.&lt;br /&gt;&lt;br /&gt;In both case above, you will only need to use IntersoftDataSource.&lt;br /&gt;&lt;br /&gt;CustomFiltering and CustomSorting will be handled during server side WebGrid event handler as explained in these article "&lt;em&gt;Walkthrough: Applying custom filtering in WebGrid&lt;/em&gt;" and "&lt;em&gt;Walkthrough: Applying custom sorting in WebGrid&lt;/em&gt;" in the WebGrid documentation.&lt;br /&gt;</description></item><item><title>Custom Paging and Hierarchical Data Source</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Custom-Paging-and-Hierarchical-Data-Source/</link><pubDate>Thu, 15 Apr 2010 20:28:56 GMT</pubDate><dc:creator>oliver@mpsbc.com</dc:creator><category>"custom paging" hierarchical "data source"</category><description>

&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;We
use WebGrid.NET Enterprise 7.0.7200.&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Our data has a hierarchical structure.
As I understand from Intersoft documentation, the hierarchical structure is
supported only when the WebGrid is bound to one of these types:&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;- System.Data.DataSet (this is
what we currently use)&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;- &lt;em&gt;Advanced Data Source
Controls&lt;/em&gt;: XmlDataSource(partially supported) or IntersoftDataSource.&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Our data can be very large in
some cases and for performance reasons we need to implement the paging
mechanism outside of WebGrid - our WebGrid would be bound to only one page at a
time and therefore the size of its data would be limited (we would get better
control over the response time and memory usage).&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;In order to achieve this, one
option would be to enable WebGrid's Classic Paging and set the PagingLoadMode
to Custom, but from what I understand from Intersoft documentation, the Custom
Classic Paging is supported only when the WebGrid is bound to a DataSource
Control.&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Since we need both features, hierarchical
structure and custom paging, we would need to bind the WebGrid to
IntersoftDataSource.&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;My question is: if we need both
features, is it correct that we have to use the IntersoftDataSource, or we
could also use System.Web.UI.IHierarchicalDataSource for example?&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;We also
need to use Custom Filtering and Custom Sorting, for the same performance
reasons. What is the answer in this case?&lt;br /&gt;&lt;br /&gt;
Thanks.&lt;/span&gt;&lt;/p&gt;
</description></item></channel></rss>