Help needed.
I am having trouble with a the pager on a rad grid. The pager for some reason will not work correctly when using the page arrows to move between pages. It works fine going from page one to page two but it will not go past page two. When I press the next page arrow, the grid flickers as if it is loading the next set of records but returns to showing page two.
I can click on another page beyond page two, such as page three or page ten, and the grid responds correctly loading that proper records. After clicking on a page beyond page two, such as page six, and then clicking on the next page arrow, the grid returns to showing page two.
Here is some info incase it is needed:
.PagerStyle.Mode = Telerik.Web.UI.GridPagerMode.NextPrevAndNumeric
.PagerStyle.Visible = True
.PagerStyle.AlwaysVisible = True
.AllowCustomPaging = False
.VirtualItemCount = 1000
I built the grid in code behind.
Thanks in advance for any assitance you can provide.
I am having trouble with a the pager on a rad grid. The pager for some reason will not work correctly when using the page arrows to move between pages. It works fine going from page one to page two but it will not go past page two. When I press the next page arrow, the grid flickers as if it is loading the next set of records but returns to showing page two.
I can click on another page beyond page two, such as page three or page ten, and the grid responds correctly loading that proper records. After clicking on a page beyond page two, such as page six, and then clicking on the next page arrow, the grid returns to showing page two.
Here is some info incase it is needed:
.PagerStyle.Mode = Telerik.Web.UI.GridPagerMode.NextPrevAndNumeric
.PagerStyle.Visible = True
.PagerStyle.AlwaysVisible = True
.AllowCustomPaging = False
.VirtualItemCount = 1000
I built the grid in code behind.
Thanks in advance for any assitance you can provide.
7 Answers, 1 is accepted
0
Hello Penny ,
Based on the information supplied, it is hard to determine the exact cause of the issue, although I suspect that this is a databinding issue. To further investigate the problem, please open a formal support ticket, and send us the problematic code. We will review it locally, and advise you further.
Kind regards,
Yavor
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Based on the information supplied, it is hard to determine the exact cause of the issue, although I suspect that this is a databinding issue. To further investigate the problem, please open a formal support ticket, and send us the problematic code. We will review it locally, and advise you further.
Kind regards,
Yavor
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
ADe
Top achievements
Rank 1
answered on 11 Feb 2009, 11:03 AM
Was there a resolution to this problem as I have the exact same thing.
0
Hello ADe,
No support ticket was opened on this issue. As mentioned previously, you can open one, and send us the particular implementation, for additional review and testing.
Sincerely yours,
Yavor
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
No support ticket was opened on this issue. As mentioned previously, you can open one, and send us the particular implementation, for additional review and testing.
Sincerely yours,
Yavor
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
venkat
Top achievements
Rank 1
answered on 23 Feb 2009, 03:05 AM
onNeedDataSource() method intern calls DataBind() .
its getting limited to 2 pages it depends on number of rows per page.
if pagesize =10 and if u r query pulling 20 rows inside onNeedDataSource() then its just pulling the rows of 20 and setting page size to 2. is this a bug?
its getting limited to 2 pages it depends on number of rows per page.
if pagesize =10 and if u r query pulling 20 rows inside onNeedDataSource() then its just pulling the rows of 20 and setting page size to 2. is this a bug?
0
AJtheCoder
Top achievements
Rank 1
answered on 21 Jun 2010, 07:57 PM
This problem (pager won't go past page 2) seems to come up when the grid viewstate is somehow disabled or corrupted, I discovered. Hope this helps someone.
0
Matthew Martin
Top achievements
Rank 1
answered on 08 Jul 2010, 09:24 PM
In case anyone else runs into this issue, I had the same thing (pager gets stuck on page 2, but only when clicking next, next, next)
I had been setting some properties of the grid in ASP.NET Themes. I moved those property settings out of the .Theme page and to the .aspx page and the stuck-on-page-2 issue went away.
I had been setting some properties of the grid in ASP.NET Themes. I moved those property settings out of the .Theme page and to the .aspx page and the stuck-on-page-2 issue went away.
0
Sue
Top achievements
Rank 1
answered on 12 Nov 2013, 02:58 PM
I had this problem and my solution was to remove this line from the grid creation:
telerikGrid.CurrentPageIndex = 0;
Which was causing the grid to think it was on page 1 every time it tried to go to the next page.
telerikGrid.CurrentPageIndex = 0;
Which was causing the grid to think it was on page 1 every time it tried to go to the next page.