RadGridView filter displays date in wrong format

2 posts, 0 answers
  1. Benedikt
    Benedikt avatar
    20 posts
    Member since:
    Apr 2014

    Posted 26 Oct 2015 Link to this post

    I have the problem, that the filter in the Telerik RadGridView has a wrong formatting for date fields. In the grid it self they are drawn correctly. I use the format: dd.mm.yyyy

     Please take a look at the attached screenshot.

     I set the column culture like this:

    GridViewBoundColumnBase column = new GridViewDataColumn();
    column.Language = System.Windows.Markup.XmlLanguage.GetLanguage("de-DE");
    this.IsLocalizationLanguageRespected = true; // this is the instance of the RadGridView

    Thank you!

  2. Stefan Nenchev
    Stefan Nenchev avatar
    536 posts

    Posted 29 Oct 2015 Link to this post

    Hi Benedikt,

    You can try setting the date time format of the column through the DataFormatString property. You can find more information regarding it on the following documentation page -Data Formatting. Once you apply it the filter should inherit the value of this property. I have tested this at my end and it works correctly with changing the different date formats. You can simply use the following code in your XAML:

    <telerik:GridViewDataColumn  DataMemberBinding="{Binding DateEstablished}"

    Stefan Nenchev
    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 Feedback Portal and vote to affect the priority of the items
Back to Top