PDA

View Full Version : Sencha DatePicker in a Grid Column Validation



deepstar
15 Nov 2013, 5:34 PM
Hi,

I'm new in EXT JS, and i want to use DatePicker of Sencha and the adavanced validation (http://docs.sencha.com/extjs/4.0.7/extjs-build/examples/form/adv-vtypes.js)
but in Grid columns in order to iliminate the overlap in dates.
Example : Start date, End Date

How ,can i implement Sencha date piscker in a Grid columns , and how can i make the validations to disable dates

tobiu
16 Nov 2013, 5:59 AM
take a look at:
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.plugin.CellEditing

-> example on top and replace the editor with your date field.

i hope that you are not using 4.0.7 anymore.

deepstar
19 Nov 2013, 11:28 AM
Hi,
As i say, i'm new in EXT JS, i need to understand how can i make a valdiation on date fiels, and when a first date is chosen, the datepicker will disabl all the dates befores the slected one.

And how can'i apply a vtype to the field .
And how can be the vtype declaration.
thanks a lot