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

Edit the pager message

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dawson
Top achievements
Rank 1
Dawson asked on 29 Aug 2014, 01:07 PM
Hi, i want to edit the pager message at the bottom of grid to something like : showing 1-10 of 50 items in 50 pages. How to edit it? 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 Aug 2014, 01:12 PM
Hi Dawson,

You can format the Pager text as follows:

C#:
protected void RadGridDetails_ItemDataBound(object sender, GridItemEventArgs e)
{
   if (e.Item is GridPagerItem)
   {
     GridPagerItem pager = (GridPagerItem)e.Item;      
     RadGridDetails.MasterTableView.PagerStyle.PagerTextFormat = Server.HtmlDecode("{4} Showing {2}-{3} of {5} items in {1} pages");
   }
}

For more help look at this documentation on Using PagerTextFormat.

Thanks,
Princy
Tags
Grid
Asked by
Dawson
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or