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

Global Resources Documentation

4 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 08 Dec 2008, 11:45 PM
Hey guys.  I've searched around on the forums and through the documentation a bit, but still haven't found this. 
Our client needs to globalize every bit of text in the RadGrid and/or potentially all of the more elaborate controls (RadScheduler).
I've looked through the properties for the RadGrid and I don't see any localization sections.  I've also looked through the installation folder and haven't found anything. 

Are there any resource files in the source code to draw upon?  Is there anywhere in the documentation that would list each bit of text's resource key for the Grid?

Thanks a lot,

Adam.g

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 11 Dec 2008, 05:01 PM
Hello Adam,

I recommend you examine our documentation (if you haven't already):
RadGrid localization through resource files
RadScheduler translating strings

Please let us know if the provided information isn't sufficient.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Adam
Top achievements
Rank 1
answered on 11 Dec 2008, 05:50 PM
The link for the RadScheduler looks very helpful.  I have noticed that the scheduler tends to have a good deal more explicit localization options available.  Am I correct when I assume this does not exist for the RadGrid?  I haven't found any section quite like it.

The RadGrid localization link is helpful, but I'm not having any trouble localizing any of those options.  Let me give you an example.

If we're looking at the basic paging demo at Telerik Basic Paging Online Demo, how do we localize the Change Page:, Prev, Next, and Displaying page...items {0} to {1}, etc.  These don't seem to be explicit properties of the Grid but are definitely grid supplied.

Thanks a lot for the assistance,

Adam.g
0
Vlad
Telerik team
answered on 12 Dec 2008, 07:14 AM
Hello Adam,

Please check this article for more info:
http://www.telerik.com/help/aspnet-ajax/grdusingpagettextformat.html

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
-DJ-
Top achievements
Rank 1
answered on 13 Feb 2009, 04:52 PM
Hi guys,
I've been searching for ways to localize the grids in my application globally without damaging the ExportToPdf() function.

I have to say this approach: http://www.telerik.com/help/aspnet-ajax/grdlocalizationthruresourcefiles.html might be the stupidest possible way.

First you have to create the resx file and add all strings there, and then you have to manually call each string in the ItemCreated event.
Why not just set the string directly in the ItemCreated event then and just skip creating the resx file?

I've used the approach to declare a global SetupGrid() sub and reference it in my pages that use a grid, no need to use the itemCreated event at all. This works fine, until you want to ExportToPdf.

The main problem is that you lose all translations on postback unless you call the SetupGrid() again.

Regards,
-DJ-
Tags
Grid
Asked by
Adam
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Adam
Top achievements
Rank 1
Vlad
Telerik team
-DJ-
Top achievements
Rank 1
Share this question
or