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

Pager is not being updated

2 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raul Ribeiro
Top achievements
Rank 1
Raul Ribeiro asked on 20 Dec 2010, 12:12 PM

Hi!

I'm having trouble on keeping a radgrid pager updated after rebinding the table with new contents (without reloading the page). The assembly version of the control i'm using is 3.1.1.0.

On the top of the page, I have a radgrid filled with several rows using NeedDataSource.
Then, below this grid, I have another radgrid which is filtered according to the row selected on the first grid (multiple row selection is not allowed). However, the pager of the second grid is not being updated accordingly. The "total number of items" shown in the pager is never updated when I bind new contents to the second grid. For instance, the grid is showing 2 items and the pager says there are a total of 5 items.

The binding of the second grid is being done using grid2.bind() each time a new row is selected on the first grid.

Do I have to update the pager info manually? How can I solve this?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Raul Ribeiro
Top achievements
Rank 1
answered on 20 Dec 2010, 05:27 PM
Well, I've changed a few things.
The second grid is now using onNeedDataSource too, in order to be populated.

The problem persists, however I detected an important thing. The "total items" are not  being updated ONLY when the total is MINOR than the number of items that were binded before (the previous "total"). For instance, when I click a row from grid1 that binds in grid2 more items than existed before, the "total items" text shown in the pager is being correctly updated. WHen the oposite occurs, the "total" is not being updated, which seems odd. Is this a bug?

0
Pavlina
Telerik team
answered on 22 Dec 2010, 12:53 PM
Hi João,

Based on the information supplied, it is hard to determine the exact cause of the issue. Therefore, I will ask you to open a formal support ticket and send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and advise you further.

Thank you.

Greetings,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Raul Ribeiro
Top achievements
Rank 1
Answers by
Raul Ribeiro
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or