Hi,
I need to set culture on an editable property grid filed that is RadDatePicker.
I need to set culture on an editable property grid filed that is RadDatePicker.
<
telerik:PropertyDefinition
Binding
=
"{Binding MarkerDate,Converter={StaticResource DateOnlyConverter},Mode=TwoWay}"
>
<
telerik:PropertyDefinition.EditorTemplate
>
<
DataTemplate
>
<
telerik:RadDatePicker
telerik:AutoBindBehavior.UpdateBindingOnElementLoaded
=
"Value"
Culture
=
"{Binding Source={StaticResource PresentationManager}, Path=Culture}"
/>
</
DataTemplate
>
</
telerik:PropertyDefinition.EditorTemplate
>
</
telerik:PropertyDefinition
>
</
telerik:RadPropertyGrid.PropertyDefinitions
>
DateOnlyConverter convert the date to specific format. for example 'MM/dd/YYYY'
Culture is set to RadDatePicker. For example 'en-US'
However this code crashes and it seems it has got something to do with AutoBindbehavior , because the above setting works fine in whole of the project except in PropertyGrid. If I remove AutoBindBehavious it won't crash but the code doesn't work as expected.
Your help is greatly appreciated,