PDA

View Full Version : Changing maxDate of Ext.menu.DatePicker



simonthoustrup
3 Jul 2012, 5:12 AM
If I set the maxDate config option when I create an Ext.menu.DatePicker object everything works as expected.
But how do I change this maxDate value dynamicly? As stated in the API, applying configuration options to 'this' doesn't change the behaviour of the object. So how do one change the value dynamicly?

Jad
3 Jul 2012, 5:57 AM
there is a function : setMaxDate(Date (http://docs.sencha.com/ext-js/4-0/#!/api/Date))

simonthoustrup
6 Jul 2012, 2:13 AM
Ahh - yes. And the last detail I was missing was that this function of course applies to the object denoted by the pickerId property and not the id property of the Ext.menu.DatePicker object.
Thanks!