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

Pagination is not coming properly in telerik self referencing hierarchy grid.

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajasekhar
Top achievements
Rank 1
Rajasekhar asked on 10 Apr 2012, 01:02 PM
Hi,

 Wrong page entries are showing in telerik self referencing hierarchy grid. It should page entries from parent entries of the grid only but it is showing child entries count also. please see the attachment for more details.

What is 26-99 of 36 in the screen shot? it should be 26-36 of 36. This is page2. In page1 also it is showing 1-175 of 36 but it should be 1-25 of 36.

please give me proper fix.

Thanks,
Rajasekhar.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 13 Apr 2012, 02:12 PM
Hello Rajasekhar,

When a self-referencing hierarchy is used and you have set the AllowPaging and PageSize properties of the RadGrid, then paging and page size are inherited by the child tables.

However, if you set the AllowPaging and PageSize properties only to the MasterTableView, the child tables will get no paging attributes therefore your issue will be solved. You can check this by removing the properties from the RadGrid main mark-up and adding them to the mark-up for its MasterTableView.

All the best,
Eyup
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
Rajasekhar
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or