This is a migrated thread and some comments may be shown as answers.

HierarchyLoadMode="Client" and Paging

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 2
Iron
Veteran
Keith asked on 30 Nov 2011, 03:54 PM
I am experiencing some behavior I consider strange when using the grid with the settings of HierarchyLoadMode="Client" along with paging.  My highest grid has it's PageSize = 10 and is using a NestedViewTemplate with a grid inside of it.  When I execute the page the markup is automatically loaded with 11 rows of controls for the parent grid and then each of them have a nested table with 11 rows within them.  This would be fine if I had that much data, but in most cases I only have a few rows of data at the parent and a two or three at the child grid level. 

In most of my cases, it is causing the size of my pages to increase from 400kb to 1700kb.

Is it expected to populate all of these extra rows in preparation for client activity?

Best Wishes,
Keith

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 05 Dec 2011, 08:55 AM
Hi Keith,

This is not expected behavior of RadGrid but I am not sure what exactly could be causing it. Can you please share your grid declaration and data-binding logic, so that we can look for possible issues in them.
You can take a look at this demo of RadGrid, where it uses client hierarchy loading and it displays just the right number of records:
Client-side Hierarchy Loading

Also, in the meantime, check whether you have more than one PageSize settings inside your grid and tableview which could be in conflict, e.g. if you have page size setting for each GridTableView, you should not set a number in the RadGrid tag.

All the best,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Keith
Top achievements
Rank 2
Iron
Veteran
Answers by
Tsvetina
Telerik team
Share this question
or