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

Date Time formatting issue on grouped column

3 Answers 346 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Garry
Top achievements
Rank 1
Garry asked on 07 Oct 2019, 10:09 AM
When I group a grid column that is a date time, the grouped data appears above the column data which is fine, however the formatting of the date is different. Is there a way to get them to either be the same or apply a different date time format?

3 Answers, 1 is accepted

Sort by
0
Hetali
Telerik team
answered on 07 Oct 2019, 05:26 PM

Hi Garry,

Thank you for the image.

I tried to replicate the issue faced by you, however the grouped data format for the date and time is the same as defined in the columns.format.

Please take a look at this Dojo sample where the title of the grouped data of the date and time is in the same format as the column data.

Could you please update the Dojo sample with the relevant code such that it replicates the issue? I will investigate further.

Regards,
Hetali
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Garry
Top achievements
Rank 1
answered on 08 Oct 2019, 04:24 PM

Hi Hetali,

Thanks for the reply and the Dojo. It helped as it got me thinking about the Date object. We build our columns and data dynamically via an api so it is a string that gets bound. Turns out we use two strings, a formatted date string "10/05/2019 20:10:45" and unformatted "10-05-2019T20:10:45", it was displaying the formatted in the column and unformatted in the header when grouping. So I just need the fix the back end now to get the two the same.

 

Thanks

 

Garry

0
Hetali
Telerik team
answered on 08 Oct 2019, 05:04 PM

Hello Gary,

Awesome!

Please let me know if you come across any issue pertaining to the Group Header format after fixing the back end. I will assist you further.

Regards,
Hetali
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Garry
Top achievements
Rank 1
Answers by
Hetali
Telerik team
Garry
Top achievements
Rank 1
Share this question
or