Hello, and thank you for your suggestion. With this new version, it doesn't matter which side you pick from, it will always deliver "[lowest date] to [highest date]". So the need to black out dates isn't necessary anymore. However, if you would like to do that, it's very simple to hook into the events for those pickers, or also you can make an extension of that renderer function to accommodate that functionality.
--
Hans Doller hans@w3forge.org
Senior Web Developer & Consultant
My Extensions: Ext.ux.NumericField: Number field with support for currencySymbol, thousand separator, international... Ext.ux.PagerSizeSelector: A plugin that allows the change page size with just one click. Ext.ux.FieldAccess: A plugin to let the user know which fields are editable.
Good job on the new version. Been using the old one and it was a pain to manage all the i18n stuff. Now its easy. Also good job on adding events that we can trap.
The way the pickers are generated is by using renderer functions, defined in the object: Ext.date.MenuRenderer
You can define a new renderer function that returns a configured time field and/or datetime field. To hook this renderer into the Ext.date.RangeField object, you can extend/overwrite the pickers() method which is defined by default in Ext.date.RangeField.defaults.
The values used internally for this object are JS Date() classes. So there shouldn't be any problem with storing the time value internally, but you'll also need to change the "format" configuration of the Ext.date.RangeField class, so that the time is displayed in the field.
Hope this helps!
--
Hans Doller hans@w3forge.org
Senior Web Developer & Consultant