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

[Solved] Localize standard filter dialog without resource files

1 Answer 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
uku
Top achievements
Rank 1
uku asked on 04 Nov 2011, 11:41 PM
Hello,

is it possible to programmatically do the localization of the standard filter dialog within the grid view. I'm not using resource files. All texts are taken dynamically from the database and exposed to the screen via properties in my view model.
Everything works fine besides the filter dialog. I don't know if and how it's possible to bind my text properties of the view model to the resource texts in the filter dialog.

If it's not possible to localize the filter dialog by binding it to my view model I guess I have to create custom filters.

Any ideas and help would be appreciated.

Uwe

1 Answer, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 07 Nov 2011, 12:45 PM
Hello Uku,

I can not think of a proper way to localize the filtering control without using resource files. If you open the control template of the FilteringControl you will see how all texts are obtained using the localization manager. One possible way to change this would be to edit the whole control template and change all places where the texts are obtained with your specific logic. I am not really sure how you will be able to specify them at runtime though. Creating custom filters would be the fastest and cleanest way to go in your particular case.

Greetings,

Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
uku
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or