RadGrid Pager Localization (how to change xx Items in xx pages)

This URL is the best place to achieve the goal: http://www.telerik.com/help/aspnet-ajax/grid-using-pagertextformat.html

the bottom line is we have to change the text from the “PagerTextFormat” property. Example:

<PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="{4} Page {0} from {1}, rows {2} to {3} from {5}" />

We can change it to:

<PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="{4} Halaman {0} dari {1}, baris {2} ke {3} dari {5}" />

Or we can moving around:

<PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="{4} rows {2} to {3} from {5}, Page {0} from {1}" />

 

No matter which pager you choose, the meaning of the different parameters is as follows:

  • {0} is used to display current page number.
  • {1} is total number of pages.
  • {2} is the number of the first item (record) in the current page.
  • {3} is the number of the last item (record) in the current page.
  • {4} indicates where the set of controls for the corresponding pager type (positioned on the left) appear.
  • {5} is the total number of items (records) in the data source.

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s