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

[Solved] Localizing Grid Header in a Silverlight GridView

1 Answer 67 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.
Seth
Top achievements
Rank 1
Seth asked on 13 May 2009, 06:02 PM
I am trying to localize the column headers for a Silverlight GridView.  Ideally, I would like to be able to bind them to a resource file in the XAML code.

Please advise.

Thanks,
Seth

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 16 May 2009, 11:38 AM
Hello Seth,

I would recommend the following approach for your scenario:
When setting the  HeaderText  in XAML , you may use custom ValueConverter.

In  the convert method you may implement your own  logic  to read from your resource file.
All this will work  with the current version of the RadGridView .

The upcoming service pack will contain some  additional localization features.

Also please note that we are marking the HeaderText property as obsolete. We are replacing it with the Header property ( of type object) which will give opportunity to set header cells content  without limiting it to string.



Greetings,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Seth
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or