View Full Version : Solved: disabledDays : and Date Picker?
mth96a
06-19-2008, 08:21 AM
how could i pass this value to the date time field?
disabledDays : [1,2,34,5,6]
disabledDays : Array
An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null).
mth96a
06-19-2008, 10:56 AM
Dont use the end-date in the class property, instead give it an id and put this after form.render
var dt = new Ext.form.DateField({
name: 'date',
width: 110,
allowBlank: false,
disabledDays : [1,2,3,4,5,6],
applyTo : 'test' //id in field name
});
mth96a
06-19-2008, 01:43 PM
add to top of js header
Ext.DatePicker.prototype.onRender=Ext.DatePicker.prototype.onRender.createSequence(function(){
this.el.child("td.x-date-bottom").remove();
});
jratcliff
06-20-2008, 11:53 PM
Awesome! Sorry I was busy and didn't get a chance to help out but I'm glad that you figured it out and shared the solution with everyone. Keep up the great work! =D>
Dont use the end-date in the class property, instead give it an id and put this after form.render
var dt = new Ext.form.DateField({
name: 'date',
width: 110,
allowBlank: false,
disabledDays : [1,2,3,4,5,6],
applyTo : 'test' //id in field name
});
jratcliff
06-20-2008, 11:54 PM
Great tip! =D>
add to top of js header
Ext.DatePicker.prototype.onRender=Ext.DatePicker.prototype.onRender.createSequence(function(){
this.el.child("td.x-date-bottom").remove();
});
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.