I would like to be able to filter my chart according to dates. The problem is that the filter does not apply correctly. If I put the beach from May 1st to the end of May, I have dates of April and even February 2018 coming up.
Here is an example Dojo (Normally I receive the datasource dynamically)
Thank you for your help.
5 Answers, 1 is accepted
Thank you very much for the provided runnable Dojo to illustrate the behaviour in your application.
The reason for it is that the dates are not seen as date, neither by Kendo UI nor by the browser and the same goes for the custom filter ui:
To remedy the situation, you can include a schema field parse function and provide the format against the date string will be parsed correctly:
The other issue is the custom filtering UI which also does not filter using a date object but an invalid date. To fix this issue, get the value of the Kendo UI DatePicker instead of getting the val() of the input:
Let me know in case any additional questions arise.
If I put a baseunit, it's working. But I must have only the values of my field "affichageDate" displayed on the axis (as my first dojo). How can I do that?
The category axis is independent if you prefer to not use the built-in date options that it provides, you can supply an array of strings like you did before: