We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Syncfusion grid issue with date filters.

<e-column

  field="start_date"

 headerText="Start Date"

 type="date"

 format="MM/dd/yyyy"

>

</e-column>

Data Source :

start_date="2023-03-15"


Here, start_date column is of type 'date' but when opening filter popup getting error saying -

" Uncaught (in promise) TypeError: value.getDate is not a function syncfusion ".


What I need to perform is date filters for such data. How to do that?


1 Reply

PS Pavithra Subramaniyam Syncfusion Team March 10, 2023 11:39 AM UTC

Hi Jubin,


In your dataSource the “start_date” field value is a string not a date object or ISO date string. So, the type and formatting will be applied only for showing the string value as a date. For data actions like filtering, we need date object to filter properly. This is the default behavior. So, you need to either convert the string value into date object in the data source before assigning it to the Grid or change the column type as ‘string’ and remove the formatting to overcome the reported issue.


Regards,

Pavithra S


Loader.
Live Chat Icon For mobile
Up arrow icon