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

[Solved] Localizing a GridDropDownList

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 2
Markus asked on 05 Jun 2008, 11:17 AM
Hello!

I have a RadGrid with a GridDropDownListColumn. The datasource for this column is an ObjectDataSource that gets the values out of a class that converts an enum to a list.

Everything works fine so far, but now I need to localize the entries of the GridDropDownList.
I tried to follow this approach: http://www.telerik.com/help/aspnet-ajax/grdcustomizeconfiguregriddropdowncolumn.html , but unfortunately
at this time (after ItemDatabound) the DropDownList has no Items.
Do you guys have any ideas how I can loclize the entries in the dropdownlist?
thx in advance & kind regards

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Jun 2008, 01:26 PM
Hi Markus,

You can use the ItemDatabound event handler, and get a reference to the editForm, and the relevant dropdowns. Then, you can alter the datasource for the dropdown, and DataBind it again. Thus, it will contain the new, localized values.
I hope this suggestion helps.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Markus
Top achievements
Rank 2
answered on 10 Jun 2008, 06:50 AM
As I already said: There are no items in the itemdatabound event, I'll open a support ticket.

regards
Tags
Grid
Asked by
Markus
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Markus
Top achievements
Rank 2
Share this question
or