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

RadGrid - Paging Buttons Issue

2 Answers 174 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Liam
Top achievements
Rank 1
Liam asked on 02 Sep 2011, 11:26 AM
Hi,

I'm running into an issue with my paging buttons (First Page, Previous Page, Next Page, Last Page) not working, the page numbers are working as expected, if I click on one of them, then the correct data is shown in the grid.

Initially, when clicking on the above paging buttons I was receiving a JavaScript error telling me to add EnableEventValidation="false" to my page properties, which I did. However, when I click on the paging buttons nothing happens, the data displayed in the grid does not change - Clicking on the page number was again working prior to this change. I can see that a post back occurs when either the paging button or screen numbers by placing a breakpoint in my Page_Load.

Whilst looking through the forums here I saw an posting (http://www.telerik.com/community/forums/aspnet-ajax/grid/first-and-last-page-buttons-in-paging-do-not-work.aspx), which appeared to be the same issue, but by placing a RadAjaxManager on the screen the issue appears to have been resolved, this did not work for me. I tried placing the reference in my Master page, then again in my content page.

I've also seen instances of people placing EnableViewState="false" in the grid, when I do this I enter my OnNeedDataSource code when clicking on the page numbers, but it's not entered for the paging buttons, the data still does not change.

The only thing that I'm doing different from the many times that I've used the RadGrid in the past is that the grid is placed within a container class which inherits from RadGrid, as my client wishes to provide some additional functionality in the grids which isn't present out of the box.

Thanks in advance for any help or advice offered.


Liam

2 Answers, 1 is accepted

Sort by
0
Liam
Top achievements
Rank 1
answered on 02 Sep 2011, 01:32 PM
Please ignore, I was being daft with this post.

Whilst looking at my code again, I saw that I hadn't configured the RadAjaxManager properly, once I did this all worked as expected.
0
Pavlina
Telerik team
answered on 02 Sep 2011, 03:08 PM
Hello Liam,

I am glad to hear that you were able to resolve the problem on your side. Please do not hesitate to contact us if other questions or problems arise.

Kind regards,
Pavlina
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Liam
Top achievements
Rank 1
Answers by
Liam
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or