Flex-grid date type sorting issue

Posted by: ashish.pal on 1 July 2019, 5:31 pm EST

  • Posted 1 July 2019, 5:31 pm EST

    I am using wijmo version 5.20182.500 with Angular 5.

    I want to show the date in “MM/DD/YYYY” format in the column as well as in filter.

    for now I am using column configuration as

    {binding: ‘updatedat’, header: ‘Last Updated At’, type: ‘Date’}

    So problem here is sorting doesn’t work as a date, it sorts according to first to numbers or ‘MM’.

  • Posted 2 July 2019, 4:59 pm EST

    Hello,

    We are sorry but we were not able to replicate the issue at our end. Please refer to the sample provided which we used to replicate the issue. Could you please take a look at the sample and tell us whether we are missing something in order to replicate the issue?

    https://stackblitz.com/edit/angular-meeiwh

  • Posted 11 May 2023, 8:53 pm EST - Updated 11 May 2023, 8:58 pm EST

    Issue you can see in image it is sorted based on month and date not year

  • Posted 14 May 2023, 10:20 pm EST

    Hi,

    We are sorry, but we are unable to replicate the issue on our end. It seems that the issue is related to the column, you shared is string type and dates are filled with string type. If this is the case, please set the column as date datatype. Also, the data should be date objects.

    Please share a sample replicating the issue so that we can assist you better as per your use case.

    Please refer to this sample for reference: https://stackblitz.com/edit/js-agad9n

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels