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

[Solved] Grid Custom Paging with Previous & Next button

3 Answers 233 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Naresh Kumar Murthy
Top achievements
Rank 1
Naresh Kumar Murthy asked on 27 Sep 2009, 05:02 PM
Hi,

I have to display the following paging format in the grid with Ajax feature.

<<Previous 5 pages | <Previous Page | 1 | 2 | 3 | 4 | 5 | Next Page> | Next 5 Pages>> 

The pager should be display below after hitting "Next  Page"
<<Previous 5 pages | <Previous Page | 2 | 3 | 4 | 5 | 6 | Next Page> | Next 5 Pages>> 

 The pager should be display below after hitting "Next 5 Pages"
<<Previous 5 pages | <Previous Page | 6 | 7 | 8 | 9 | 10 | Next Page> | Next 5 Pages>> 

Viceversa with previous link button.

Thanks in advance.
Naresh.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 28 Sep 2009, 07:57 AM
Hi Naresh,

The template GridTableView.PagerTemplate can be used for defining unique look and feel for the appearance and features of the pager item:
Pager Template

Another option for customizing the default pager is to replace it programmatically with your own pager instance. For more information, please refer to the following articles:
Customizing the Pager
Help topic

Kind regards,
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.
0
Naresh Kumar Murthy
Top achievements
Rank 1
answered on 28 Sep 2009, 08:45 AM
Hi Pavlina,

It would be great if you provide a sample code (Which exactly suits my requirement)..

Thanks,
Naresh.
0
Pavlina
Telerik team
answered on 28 Sep 2009, 01:45 PM
Hi Naresh,

To set the desired appearance and features of the Pager item I suggest you using pager template 
and implement your custom logic.

Best wishes,
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
Naresh Kumar Murthy
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Naresh Kumar Murthy
Top achievements
Rank 1
Share this question
or