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

[Solved] Datagrids' Pager Style Mode with NexPrev behavior is ODD

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shaji
Top achievements
Rank 1
shaji asked on 06 Oct 2009, 03:05 PM

 

I have RadGrid in web application, Paging Working Perfectly when pagerStyle Mode is set to "NumericPages" and "Advanced"

When Mode is

1) set  to ="NextPrevAndNumeric"  Paging is not working properly.  i.e.,  I have total 4 pages is in grid.  When I click Page 2, data on page 2 displayed properly.  When I click Page 3.  Data on page 4 is displayed.  Now if i press Page 2 then Data on Page 3 is displayed.  when I click Page 1 then data on page 2 is dispalyed.

I have binded datagrid on pageload  also I have Grid's pageIndexChanged Method.  When I remove Pageindex changed mehtod then also same issue occurs..

2) set mode to = "NextPrev"   then also paging have issues.  i.e.  I have total 4 pages is in grid, when I click "next" data on page 2 displayed.   Then again if you click "Next"  data on page 1 displayed instead of data on page 3.

Kindly suggest what is the reason behind this odd behavior ??

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 09 Oct 2009, 01:14 PM
Hi Shaji,

For advanced features such as paging, RadGrid must be bound using declarative data sources or through the NeedDataSource event. When using declarative data sources or the NeedDataSource event, RadGrid can automatically accommodate the appropriate database operations without the need for you explicitly handle any sorting, paging, grouping, and so on.

I hope this information helps.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
shaji
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or