PDA

View Full Version : Handling events on datepickerfield



demispb
13 Dec 2011, 1:36 PM
Hello, I want to refresh a Chart when a user select a new date in a datepickerfield...How can i handle this event ??My code are 2 datepickerfield (initial date and final date) and when a user change any date the chart will refresh with the dates stored on both datepickerfield's. Now i have a button for that action but i want that the chart refresh when the user change the date// The Chart...
var chartObj = new Ext.chart.Chart({ ..... });//The Button handler for refresh the chart:
handler: function() { store.loadData(Filter()); }//The datapickerfield's...
{xtype: 'datepickerfield',width : 150,name: 'dateselectorini',picker: { yearFrom: 1970 }},{xtype: 'datepickerfield',name: 'dateselectorfin',width : 150,picker: { yearFrom: 1970 }}...

mitchellsimoens
14 Dec 2011, 7:25 AM
The datepicker fields will fire a change event once the value in that field has changed.

demispb
15 Dec 2011, 5:05 AM
Thanks man !!!