sekaijin
21 Oct 2008, 3:50 AM
Hi when your are using comboBox on toolBar the select event is funy way to react on choise in your combo, for using combo same as menu wath display selected value.
But if you want DateField you don't have select event. you need use simple Field to display the value and DatePicker on a menuButton to selct the date.
you can add the select event to DateField whith
var dt= new Ext.form.DateField({...});
dt.menuListeners.select = function(m, d){
this.setValue(d);
this.fireEvent('select', this, d);
};
same as comboBox you can now handle the select event on your DateField
Bye
JYT
But if you want DateField you don't have select event. you need use simple Field to display the value and DatePicker on a menuButton to selct the date.
you can add the select event to DateField whith
var dt= new Ext.form.DateField({...});
dt.menuListeners.select = function(m, d){
this.setValue(d);
this.fireEvent('select', this, d);
};
same as comboBox you can now handle the select event on your DateField
Bye
JYT