Hi all,
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-
function()
{
var minDate = new Date();
var endDate = this.previousSibling();
minDate=endDate;
minDate.setDate(minDate.getDate());
this.df.minValue=minDate;
}
The function doesnt work as expected.
Am i missing something here? Please help....