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

Rad Grid Pager won't go past page 2

7 Answers 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Penny
Top achievements
Rank 1
Penny asked on 24 Sep 2008, 11:05 PM
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. 






 

7 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 26 Sep 2008, 12:45 PM
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.
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
Yavor
Telerik team
answered on 11 Feb 2009, 12:01 PM
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.
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?

0
ADH
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.
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.
Tags
Grid
Asked by
Penny
Top achievements
Rank 1
Answers by
Yavor
Telerik team
ADe
Top achievements
Rank 1
venkat
Top achievements
Rank 1
ADH
Top achievements
Rank 1
Matthew Martin
Top achievements
Rank 1
Sue
Top achievements
Rank 1
Share this question
or