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

[Solved] Current Page display on pager isn't displaying properly after filter is applied.

1 Answer 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 05 Feb 2008, 09:06 PM
We are using custom paging, and the standard Slider pager.  If we scroll to the last page of the grid, then apply a column filter which reduces the number of rows, the current page indicator incorrectly displays the wrong page number (it displays last page number of the unfiltered data).  To see the last page of filtered data, the user must click Previous and then Next.
I believe this is because the ItemEvent event for GridInitializePagerItem is raised before the filtered data is supplied via the NeedDataSource event.  Would forcing the pager controls to be re-created by calling the ItemEvent, specifying GridInitializePagerItem solve the problem?  If so, how would I go about doing so.

Thank you,
Martin.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 08 Feb 2008, 01:25 PM
Hello Martin,

I tried to reproduce the erroneous behavior using the latest version of RadGrid Prometheus (Q3 2007 SP1) and slider pager but my attempts were not successful (see the enclosed project). I tested the demo by navigating to the last page in the grid (dragging the slider to the right), typed 'Sa' in the ContactTitle filter textbox and choosing Contains/StartsWith filter criteria. In both cases the page index was reset and 4 or 5 pages of data were displayed in the grid table.

Can you please confirm this on your machine? Any further details regarding different configuration settings you might have can help us identify the core of the problem and eliminate it asap.

Kind regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Martin
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or