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

Pager Template

8 Answers 230 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott Rakestraw
Top achievements
Rank 1
Scott Rakestraw asked on 22 Dec 2011, 08:23 PM
Is it possible to show in the pager that you are looking at Page 1 of 100 etc.?

8 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Dec 2011, 01:07 PM
Hello,

 Currently this is not supported out of the box. It is relatively easy though to implement it with a few lines of JavaScript:


Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Scott Rakestraw
Top achievements
Rank 1
answered on 23 Dec 2011, 02:25 PM
That worked.  For anyone else that wants to do any formatting on this instead of using info.text just use info.html.
0
Scott Rakestraw
Top achievements
Rank 1
answered on 04 Jan 2012, 09:48 PM
This worked fine until I added a detail table to my grid.  How do I go about getting the pager for the grid that I am working with?
0
Atanas Korchev
Telerik team
answered on 05 Jan 2012, 10:05 AM
Hi,

 I don't understand what the problem is. Could you please clarify?

Greetings,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Scott Rakestraw
Top achievements
Rank 1
answered on 05 Jan 2012, 01:48 PM
When I have multiple grids on the page then I will have multiple matches to k-grid-pager.  How do I just access the one for the grid that has the change event.  In my case I have a hierarchy and am trying to set the text on the drilldown levels.
0
Atanas Korchev
Telerik team
answered on 05 Jan 2012, 03:06 PM
Hi,

 You need to make the selector more specific:

var info = $("#grid > .k-grid-pager info") 

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Basem
Top achievements
Rank 1
answered on 05 Jun 2012, 12:29 PM
The jsfiddle sample expired and is no longer there. Can someone please post the code here? I am trying to implement a template for the pager as well.
0
Nikolay Rusev
Telerik team
answered on 08 Jun 2012, 10:15 AM
Hello Basem,

Here is how this can be accomplish: http://jsfiddle.net/VAhLk/

All the best,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Scott Rakestraw
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Scott Rakestraw
Top achievements
Rank 1
Basem
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or