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
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.