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

Set HeaderText when i select a language

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 02 Apr 2014, 03:21 PM
Hi,

It's possible to set my HeaderText when i select a language ?

I create a fil named RadGrid.Main.resx and an other file named RadGrid.Main.en.resx on my App_GlobalResources ?

And on my table i write my NameOfmeta:resourcekey.HeaderText ?

Tell me if i'm wrong pls.

Regards,
Alexandre

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 07 Apr 2014, 01:08 PM
Hi Alexandre,

You could try use explicit localization, where you use a resource expression. Please check out the following code snippet.
<telerik:GridBoundColumn DataField="Column4" HeaderText="<%$ Resources:WebResources, HeaderCaption %>"></telerik:GridBoundColumn>

The resource expression takes the following form, where Class is optional, unless the resource is a global one, and ResourceID is required:<%$Resources:Class,ResourceID%>


Regards,
Kostadin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or