Hi,
Thank you for all your help.
I have two questions.
Question 1:
When I select from the list of filters, I get the message "No data available".
I think it probably has something to do with time zone, how can I resolve this?
The time zone of my development environment is Japan, but I want the date and time displayed on the page and the date and time data in the database to be in UTC.
The situation is as follows.
I tried to filter to select the August 2020 data.
There should be data, but there is "no data".
I think the above is probably due to the DataManagerRequest value being set to Japan time (+9h). (although the Kind property is in Utc for some reason)
However, I don't know how to solve this problem.
Question 2:
When I tried to display the filter dialog from the date/time filter submenu, it did not work.
Other types (string, long, etc.) work fine.
How can I solve this problem?
The situation is as follows.
Only the submenu display remains, and nothing works.
A sample is attached.
Thank you in advance.
Regards,
Pylori.
Hi Pylori,
Thanks for contacting Syncfusion support.
Query#1: When I select from the list of filters, I get the message "No data available".
Currently We are validating the reported issue “DateTime filtering is not working properly due to time zone mismatch” at our end. So we will update further details on October 28th, 2022. Until then we appreciate your patience.
Query#2: When I tried to display the filter dialog from the date/time filter submenu, it did not work.
Based on the provided information we suspect that you are facing problem because of not loading the required culture files for the calendar control(rendered in the Grid filter). So, we suggest you resolve this by loading the following culture files from the cldr-data of the ’node modules’ – ['ca-gregorian.json', 'numbers.json', 'currencies.json', 'timeZoneNames.json'] from the required culture present inside the main folder(‘ja’ culture for your case) and also [ 'numberingSystems.json', 'weekData.json'] files from the supplemental folder in your sample.
https://ej2.syncfusion.com/aspnetcore/documentation/datepicker/globalization
Regards,
Pavithra S
Hi Pylori,
Thanks for your patience.
Query#1: When I select from the list of filters, I get the message "No data available".
You can overcome the reported issue by adding the below solution to your sample. Please refer to the below code example in which we have overridden the internal date parsing method to send the UTC time to the server.
ej.data.DataUtil.dateParse.addSelfOffset = function (input) { if (ej.data.DataUtil.serverTimezoneOffset === 0) { return new Date(+input); } else { return new Date(+input - (input.getTimezoneOffset() * 60000)); } } |
Please get back to us if you need further assistance on this.
Regards,
Pavithra S
Hi,
Thank you very much for your answer.
Thanks to you, we were able to solve the said problem.
Regards,
Pylori.
Hi Pylori,
Welcome! We are happy to hear that the reported issue has been solved. Please get back to us if you need further assistance on this.
Regards,
Pavithra S