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

To display more Pages on RadGrid than data source.

2 Answers 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gaurav
Top achievements
Rank 1
Gaurav asked on 27 Mar 2014, 04:14 AM
Hi,

I need an urgent support. The requirement is as foll.

Suppose
a telerik grid has 10 pages with 10 records displaying on each page.
Now if i click on page no 4. I will fetch only 10 records from 41 to 50.
But on page it should display as no of pages 10 and selected page as 4.

Please help me ASAP.

Regards,
Gaurav

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Mar 2014, 04:57 AM
Hi Gaurav,

I guess you want to set the PagerTextFormat for the Grid as total number of pages and currently selected page.
Please try the following code snippet.

ASPX:
<PagerStyle PagerTextFormat= "{4} Number of Pages : {1}, Selected Page : {0}" />

Take a look at this article to know more about Using PagerTextFormat

Thanks,
Princy
0
Eyup
Telerik team
answered on 01 Apr 2014, 06:02 AM
Hi Gaurav,

In addition to the provided approach, you can also check:
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/paging/custom-paging/defaultcs.aspx

Hope this helps.

Regards,
Eyup
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
Grid
Asked by
Gaurav
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Eyup
Telerik team
Share this question
or