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

Page Number etc, css

5 Answers 189 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 24 Nov 2009, 09:29 AM
Hi
I have my grids set to numericpages and i am hiding the pagesize drop-down etc.

On the left is the pages.. 1,2,3...
and on the far right is "Page 1 of 2, items 1 to 200 of 202"

I'm sure this is a simple question, but... How do i align the "Page 1 of 2,..." after the pages, on the left ?
Also, is it possible to change the word "items" ?

Many Thanks
Mark

5 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 24 Nov 2009, 10:02 AM
Hi Mark,

You can set the format of the text that appears in the Pager using the PagerTextFormat property.
Please find more information in the following help article:
Using PagerTextFormat

Additionally, if you would like to have more flexible/customizable grid pager, consider defining your own pager template as illustrated in this online demo:
Pager Template

I hope this helps.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Accepted
Shinu
Top achievements
Rank 2
answered on 24 Nov 2009, 10:04 AM
Hi Mark,

Try the following approach in order to customize the pager.

css:
 
    <style type="text/css"
    .rgInfoPart 
    { 
       float:left !important;        
    } 
    </style> 

aspx:
 
 <MasterTableView AutoGenerateColumns="False" EditMode="InPlace" CommandItemDisplay="Top" 
            DataSourceID="SqlDataSource1" DataKeyNames="CustomerID"
      <PagerStyle Mode="NumericPages" PagerTextFormat="{4}  Page {0} of {1}, records {2} to {3} of {5}" /> 
      <Columns> 
        . . . 

-Shinu.
0
Mark
Top achievements
Rank 1
answered on 24 Nov 2009, 10:14 AM
That worked like a charm !!
Thanks
Mark
0
Uday
Top achievements
Rank 1
answered on 13 May 2011, 12:18 PM
This is not working if user moves to next page, using pager buttons.
This is happening if we are using telerik:RadAjaxManager and grid is added in UpdatedControls.
0
Pavlina
Telerik team
answered on 18 May 2011, 05:04 PM
Hi Uday,

Can you share a runnable code so I can check it out?

All the best,
Pavlina
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
Mark
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Shinu
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Uday
Top achievements
Rank 1
Share this question
or