PDA

View Full Version : datepicker and event



wehtam
25 Sep 2007, 4:04 AM
hello,
I would like to know the event which is called when one clicks over one month or a year in the calendar.
And how to disabled selecting, the dates before today.

Thanks

evant
25 Sep 2007, 4:11 AM
You need to read the documentation, stop being lazy.

http://extjs.com/deploy/ext/docs/output/Ext.DatePicker.html

wehtam
25 Sep 2007, 4:24 AM
I read documentation.:">
Here my code:

var calendier = function(){
var dp2 = new Ext.DatePicker();
return {
init : function(){
dp2.render('date_fin');
dp2.on('select',function()
{
alert('click');
});
}
}
}();
Ext.EventManager.onDocumentReady(calendier.init, calendier, true);


but when i click on year or on month, i have no alert