Posted 9 October 2019, 6:45 pm EST
hello there,
I am trying to implement a feature that requires the user to enter a date range into two adjacent columns in a grid, so i need a startDate and endDate column. For that requirement I decided to use wijmo’s date input and create a custom editor with it. the idea is that I will set the startDate’s [max] = endDate and endDate’s [min] = startDate. It all works flawlessly if I use the calendar and click on a date. The problem comes if I type a date that is later then the max or earlier then the min date. In that situation the date input cancels the edit and sets today’s value in the field. This is problematic because the user might not realize that the date they entered changed to today’s date automatically, and ultimately submit valid, but wrong date range. What I would like to do is: if the date they manually enter is outside of the min-max range, set the field to empty (instead of today’s date). Can someone help with a suggestion of how I can make the date-input use null as default value.
Thank you