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

Localizing TemplateColumnEdit

2 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 22 Aug 2014, 03:42 PM
I have an application where I am dynamically creating a group of tabs, each one with a radgrid on it, from the code behind.  The radgrid includes a TemplateColumnEdit column (GridEditCommandColumn cannot be used because the link fires javascript to decide based on row data which of 7 types of dialog to present for editing).  Here is a portion of the code:

var colEdit = new GridTemplateColumn();
colEdit.UniqueName = "TemplateEditColumn";
colEdit.AllowFiltering = false;
colEdit.HeaderStyle.Width = Unit.Percentage(5);
colEdit.ItemStyle.VerticalAlign = VerticalAlign.Top;
colEdit.ItemTemplate = new TemplateColumnEdit("EditLink");

The column always says "Edit" regardless of the language/culture.  I need either to translate it, or to display ~/App_Themes/Default/RadGrid/Edit.gif.  How can this be accomplished from code behind?

Thank you.

2 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 22 Aug 2014, 03:58 PM
Additional: tried setting (gridname).Culture and this changed some tooltips but not the label on the TemplateColumnEdit.
0
Princy
Top achievements
Rank 2
answered on 25 Aug 2014, 12:50 PM
Hi Mike,

Please try the following help documentation on Localization:
Localization through resource files
Localization through global resources

Thanks,
Princy
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or