I am trying to implement a listener on a dialog field with xtype datetime for the change event.
The usecase is: To set the end date (value same as start date) once a start date has been selected by the user in the dialog. Start date and End dates are siblings.
I have implemented the following function on the listener node created under enddate field in dialog-
var minDate = new Date();
var endDate = this.previousSibling();
The function doesnt work as expected.
Am i missing something here? Please help....
Solved! Go to Solution.