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

Pager request

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John Martin
Top achievements
Rank 2
John Martin asked on 15 Jul 2008, 11:53 AM
I have the CustomGridPager but want to be able to display how many pages there are in total and what the current page is.

Else I would like to use the advanced page system but add jump to first/last record functionallity.

Can you help?

Steve

1 Answer, 1 is accepted

Sort by
0
Kevin Babcock
Top achievements
Rank 1
answered on 15 Jul 2008, 03:39 PM
Hello John,

You can get that kind of functionality by setting the Mode property of the PagerStyle element in your RadGrid.

<telerik:RadGrid ID="RadGrid1" runat="server"  
    DataSourceID="SqlDataSource1"            
    PageSize="20"  
    AllowPaging="True"  
    AutoGenerateColumns="true"
    <MasterTableView /> 
    <PagerStyle Mode="NextPrevAndNumeric" /> 
</telerik:RadGrid> 

There are 6 modes to choose from:
  • Advanced - Allows you to manually type in the page you want to go to, as well as how many records are displayed per page.
  • NextPrev - The default mode, gives you two arrows which allow you to navigate forwards and backwards through the pages.
  • NextPrevAndNumeric - Combines the features of NextPrev and NumericPages.
  • NextPrevNumericAndAdvanced - Combines the features of Advanced, NumericPages, and NextPrev
  • NumericPages - Allows easy navigation to a specific page by providing the page numbers as hyperlinks.
  • Slider - Provides a slider for page navigation.
If you'd like more details on creating a custom pager template, check out this link or this demo.

I hope this has been helpful. If you have any further questions, please feel free to ask.

Sincerely,
Kevin Babcock
Tags
General Discussions
Asked by
John Martin
Top achievements
Rank 2
Answers by
Kevin Babcock
Top achievements
Rank 1
Share this question
or