I have datepicker column in treegrid control. And below is the code for the same
cols.push({ field: 'Start', headerText: 'Projected Start',editType:'datepickeredit' ,
textAlign: 'left', width: 150,allowEditing:true,isFrozen:false,allowResizing:true, format: { type: 'date', format: 'dd/MM/yyyy' }});
cols.push({ field: 'Finish', headerText: 'Projected Finish', editType:'datepickeredit' ,
textAlign: 'left', width: 150,allowEditing:true,isFrozen:false,allowResizing:true, format: { type: 'date', format: 'dd/MM/yyyy' }});
When I use above it throws error and even below links are not working. how do i enable date format after editing.
ej2-treegrid.es2015.js:239 [EJ2TreeGrid.Warning]: INVALID FORMAT
For more information, refer to the following documentation links:
Number format: https://ej2.syncfusion.com/documentation//base/intl.html?#supported-format-string.
Date format: https://ej2.syncfusion.com/documentation//base/intl.html?#manipulating-datetime.
Message: TypeError: value.getDate is not a function