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

Telerik Grid | Pagination control

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amandeep
Top achievements
Rank 1
Amandeep asked on 07 May 2010, 03:20 PM
I have used a telerik grid in my application.
The resultset has around 50 pages. Each page contains 10 records.
I am using pagination in the grid, in which I am using following code:

Control numericPagerControl = gridPager.GetNumericPager();
                Control placeHolder = gridPager.FindControl(NUM_PAGER_CONTROL_ID);
                placeHolder.Controls.Add(numericPagerControl);

Now, the page numbers are appearing as below:

1 2 3 4 5 6 7 8 9 10 ....

But because of space constraints in the header, I want to display only following string:

1 2 3 4 5 ....

Please revert asap.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 07 May 2010, 05:08 PM
Hello Amandeep,

You just have to set PageButtonCount="5" as shown below.
<PagerStyle PageButtonCount="5" />

PageButtonCount Property

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Amandeep
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or