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

Localization in paging of RADGrid

7 Answers 299 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
prateek
Top achievements
Rank 1
prateek asked on 28 Jun 2011, 01:06 PM
How do i localize the text that is written in the bottom when pagination is done in the radgrid. For Example text which displays the page number "Page No. 1 2 3" or text of "Items"
The text in the given quotes need to be in local language selected by the user on the page.

7 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 28 Jun 2011, 02:05 PM
Hi Prateek,

To achieve your goal you can localize RadGrid using global resource files. Refer to the following demo which shows how built-in localization through Global resources works:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/localization/defaultcs.aspx

Best wishes,
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.

0
prateek
Top achievements
Rank 1
answered on 28 Jun 2011, 03:11 PM
Thanks for the reply but this doesnt solves the problem. The header and and rest of the data take the local culture and get displayed but the footer part which is displayed as "91 items in 10 pages" or ""Page size:" as in the given example doesnt get localized when used as given in the example.
0
Pavlina
Telerik team
answered on 28 Jun 2011, 04:15 PM
Hello Prateek,

RadGrid Localization demo is working as expected on my side as you can see from this video. Watch the video and let me know if I am leaving something out.

Best wishes,
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.

0
prateek
Top achievements
Rank 1
answered on 29 Jun 2011, 07:56 AM
Actually we are not uing app_Resources folder in our project
We are using another localization folder . is there any way that i can map the rad resx files and use them in the localization folder instead of app_resorces folder.?
0
Pavlina
Telerik team
answered on 29 Jun 2011, 01:01 PM
Hello Prateek,

I suggest you examine the forum thread below and let me know if it helps to achieve your goal:
http://www.telerik.com/community/forums/aspnet-ajax/grid/localize-grid-pager.aspx

Greetings,
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.

0
prateek
Top achievements
Rank 1
answered on 30 Jun 2011, 11:07 AM
Hi
I have been able to achive all the task other than changing the language of PagerText of ("39 items in 2 pages ")
Can i specifically know how to change the language of this.
0
Paul Herzberg
Top achievements
Rank 1
answered on 20 Aug 2013, 12:46 PM
Hello,

The answer here is slightly obfuscated. I had the same problem and the links do give you the answer, but it looks like they don't.

The problem is that the text from the English interface doesn't seem to come from the resx file so when you look for the string "{0} items in {1} pages" or something similar it doesn't show up.

Oddly, if you set the radgrid culture to "de-DE" and then you copy & rename the "radgrid.main.resx" to "radgrid.main.de-DE.resx" as I did the new text "Change page: {4} &nbsp;Page <strong>{0}</strong> of <strong>{1}</strong>, items <strong>{2}</strong> to <strong>{3}</strong> of <strong>{5}</strong>." doesn't show up in the interface. If you add " (de)", say, to the end of the string then the changed entry does show up.

That entry, "PagerTextFormat" is the one that needs changing.

Cheers

Paul Herzberg
Tags
General Discussions
Asked by
prateek
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
prateek
Top achievements
Rank 1
Paul Herzberg
Top achievements
Rank 1
Share this question
or