Hi,
I am in the process of converting many Repeater and GridView controls into RadGrid controls but have come across an issue when trying to apply specific localizations.
For example, previously I could very easily localize a column header in a GridView by simple adding meta:resourcekey="projectName" to a Localize control within the HeaderTemplate, but how could I translate the header text in this:
......
<telerik:GridBoundColumn HeaderText="Project Name:" ReadOnly="True" DataField="ProjectName" UniqueName="assessmentsNameCol">
<ItemStyle Width="20%" />
<HeaderStyle Width="20%" CssClass="hor" />
</telerik:GridBoundColumn>
......
We serve all our localizations directly from a database, so simply adding projectName.Text and projectName.Tooltip values would previously allow us to immediately translate this column - on a page-specific basis.
I have read several forum posts about how to add globalization entries for RadGrids, but this will not work if I have different RadGrids trying to use the same resx file.
How can I achieve this level of customization using RadGrids? Do I HAVE to use Globalizations? If so, how can I change the name of each globalization file that each RadGrid uses (so that I can have 1 set of .resx files for each grid)?
Thanks in advance,
Nick
I am in the process of converting many Repeater and GridView controls into RadGrid controls but have come across an issue when trying to apply specific localizations.
For example, previously I could very easily localize a column header in a GridView by simple adding meta:resourcekey="projectName" to a Localize control within the HeaderTemplate, but how could I translate the header text in this:
......
<telerik:GridBoundColumn HeaderText="Project Name:" ReadOnly="True" DataField="ProjectName" UniqueName="assessmentsNameCol">
<ItemStyle Width="20%" />
<HeaderStyle Width="20%" CssClass="hor" />
</telerik:GridBoundColumn>
......
We serve all our localizations directly from a database, so simply adding projectName.Text and projectName.Tooltip values would previously allow us to immediately translate this column - on a page-specific basis.
I have read several forum posts about how to add globalization entries for RadGrids, but this will not work if I have different RadGrids trying to use the same resx file.
How can I achieve this level of customization using RadGrids? Do I HAVE to use Globalizations? If so, how can I change the name of each globalization file that each RadGrid uses (so that I can have 1 set of .resx files for each grid)?
Thanks in advance,
Nick