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

[Solved] Custom Paging

1 Answer 201 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stuart McLeod
Top achievements
Rank 1
Stuart McLeod asked on 16 Feb 2008, 07:33 AM
Hi there,

I'm wondering if it's possible to implement a pager that is entirely custom. That is it's not attached to the grid in any way. It could be somewhere completely different on the page. I see the use of a class to implement the pager but that is still attached to the grid by specifying pager-position="top" or "bottom", etc.

I'd like to write a class, put that on the page whereever I like, and wire it up to the grid by specifying it somewhere in the properties.

If someone could let me know the best approach, that would be great. It maybe that I have to implement paging in a completely different way, without using any of the grid functionality.

Regards,

Stuart.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 18 Feb 2008, 06:59 AM
Hi Stuart,

If you want to have a pager inside the grid you can use PagerTemplate similar to this example:
http://www.telerik.com/demos/aspnet/Grid/Examples/Programming/PagerTemplate/DefaultCS.aspx

If you want to have a pager outside of the grid I suggest you to prepare for this control grid ID property which can be used to find the grid in the current NamingContainer and set desired properties. You can use also FireCommandEvent in this case:

http://www.telerik.com/help/radcontrols/prometheus/grdFireCommandEventFromCode.html

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Stuart McLeod
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or