I have a gridviewcolumn that is bound to a DateTime (CartridgeExpiration). I am formatting the data based on the bound Property "ExpirationDateFormat". When I set the application culture to "de-DE" and provide a DataFormatString of "MM/dd/yyyy", I see '.' as the date separator in the filter list instead of '/'. I was seeing the same behavior in the dates displayed in the gridview column until I created a CellTemplate with the MultiBinding.
Here is my GridViewColumn definition:
<telerik:GridViewDataColumn DataMemberBinding="{Binding CartridgeExpiration}"
ShowFieldFilters = "False"
ShowFilterButton = "False"
DataFormatString="{Binding ExpirationDateFormat}"
HeaderCellStyle="{StaticResource SharedRadGridHeaderCellSmallFont3LineStyle}">
<telerik:GridViewDataColumn.Header>
<TextBlock AutomationProperties.AutomationId="QcHistoryCartridgeExpirationHeader"
Text="{x:Static AdminStrings.QcHistoryCartridgeExpirationHeader}"
TextWrapping="Wrap" TextAlignment="Center" FontSize="16"/>
</telerik:GridViewDataColumn.Header>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<TextBlock>
<TextBlock.Text>
<MultiBinding Converter="{StaticResource DateToStringConverter}">
<Binding Path="CartridgeExpiration"/>
<Binding RelativeSource="{RelativeSource AncestorType=UserControl}" Path="DataContext.ExpirationDateFormat"/>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
ExpirationDate = "MM/dd/yyyy" shows in the filter as "MM.dd.yyyy"
How can I get the filter display to use the format I have provided?
Thanks.
George