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

Formatting expressionPreview

2 Answers 74 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Mat
Top achievements
Rank 1
Mat asked on 25 Sep 2019, 08:56 AM

Is it possible to alter the format of the expressionPreview?

When a date filter is applied, the preview looks like: "Date Is After 'Tue Jan 01 2019 00:00:00 GMT+0000 (Greenwich Mean Time)'" -- I'd like to be able to customize the displayed date format, something like adding "format:"{0:dd/MM/yyyy}" to the 'fields' object.

Thanks

2 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 27 Sep 2019, 08:34 AM

Hello Mat,

 

I am afraid that customizing the format of the displayed values is currently not available in the Filter widget. Nevertheless, you can submit a feature request in our feedback portal for including the enhancement.

https://feedback.telerik.com/kendo-jquery-ui

 

Regards,
Viktor Tachev
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
Frederic
Top achievements
Rank 1
Veteran
Iron
answered on 19 Jun 2020, 02:32 AM

Hi Mat, we had that issue and we did not found any other solution than this global one. 
In fact, it's ok because we prefer always see our dates like that!

Date.prototype.toString = function(){return kendo.toString(this, "dd/MM/yyyy")};

In our case, we return the "iso8601" format, but  you can do what you want.

Tags
Filter
Asked by
Mat
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Frederic
Top achievements
Rank 1
Veteran
Iron
Share this question
or