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

is converterculture not supported in GridViewDataColumn

3 Answers 116 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ole
Top achievements
Rank 1
Ole asked on 19 Oct 2010, 03:54 PM
Hi,

Having a

<

 

 

telerik:GridViewDataColumn Header="Cost(USD)" DataMemberBinding="{Binding Path=TotalCost, StringFormat=\{0:c\}, ConverterCulture=en-US}"/>

 

gives me the currency in my locale (kr) and not  ($.)

Is this not supported ?.

Best

Ole

3 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 19 Oct 2010, 04:14 PM
Hi Ole,

 The ConverterCulture property of the Binding class is passed onto the Converter in the Binding, if set. You don't have a IValueConverter set in your Binding so the value of the ConverterCulture property is disregarded. The ConverterCulture does not apply to StringFormat. You can learn more about this topic here.

 If you wish to influence the output of StringFormat, you need to set the Language property of the RadGridView to the correct culture's IetfLanguageTag.
Kind regards,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ole
Top achievements
Rank 1
answered on 19 Oct 2010, 05:26 PM
Hi,


I have used before in a normal wpf silverlight datagrid this descriptive code and it worked, something must be different.

<

 

 

data:DataGridTextColumn Binding="{Binding Verd03, StringFormat=C,ConverterCulture=en-US}" SortMemberPath="Verd03" />


Best

Ole

 

0
Accepted
Nedyalko Nikolov
Telerik team
answered on 20 Oct 2010, 09:50 AM
Hello Ole,

You could use Yavor's proposal as workaround for this issue. We've already fixed it and the fix will be available with the next latest internal build.
Sorry for the inconvenience caused.

P.S. I've updated your Telerik points accordingly.

Greetings,
Nedyalko Nikolov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ole
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Ole
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Share this question
or