HierarchyLoadMode="Client" and Paging

2 posts, 0 answers
  1. Keith
    Keith avatar
    15 posts
    Member since:
    Sep 2011

    Posted 30 Nov 2011 Link to this post

    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,
  2. Tsvetina
    Tsvetina avatar
    2085 posts

    Posted 05 Dec 2011 Link to this post

    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,
    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
Back to Top