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

PagerTextFormat on client

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Klemen Novak
Top achievements
Rank 1
Klemen Novak asked on 16 Jun 2011, 02:08 PM
Hi, we are using grid.PagerStyle.PagerTextFormat on server side to add custom text and image to pager text. Now we have a case where we are binding the grid on client side (web service) . On different conditions we want to append text to the end of ({4} | Displaying page {0} of {1}, Number of items {2} to {3} of {5}) like: "{4} | Displaying page {0} of {1}, Number of items {2} to {3} of {5} (total results "n")". What approach shoould we have on customising pager text on client? Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 21 Jun 2011, 09:28 AM
Hello Klemen,

When using client-side binding you will have to modify the pager text directly. A possible approach is to use jQuery to access the DIV container:
Copy Code
$telerik.$(".rgInfoPart")[0].innerHTML...

The text part that contains the pager text has a class name "rgInfoPart".

Kind regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Klemen Novak
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or