PDA

View Full Version : Date Validation



Soumyajm
23 Jul 2012, 2:50 AM
Hi,
My code is like this
var calenderPanel = Ext.create("Ext.panel.Panel", {
bodyStyle: 'padding-left:1px;',
border: false,
renderTo: "reportPeriodButtonsCustomDiv",
hidden:true,
//width:560,
height:55,
items: [{
layout:'column', xtype: 'fieldset', border:false,
itemshttp://www.sencha.com/forum/webkit-fake-url://01B885F9-5AA7-4056-A63B-A4042FAE30DE/embarrassed.tif{
columnWidth:.1, border: false,
layout: 'form',
items: [
{
xtype:'label',
text:'From',
cls:'calendarlablefontsize'

},
{
id:'fromdate',
name:'fromdate',
xtype:'datefield',
anchor:'100%'

}
]},
{
columnWidth:.12, border: false,
layout: 'form',
bodyStyle: 'padding-left:15px;',
items: [
{
xtype:'label',
text:'To',
cls:'calendarlablefontsize'

},
{
xtype:'datefield',
id:'todate',
name:'todate',
anchor:'100%',
startDateField: 'fromdate'
}
]}
]
}]
});


}

Here i need to set the fromdate as minvalue for Todate . But its not working . Please help me

evant
23 Jul 2012, 2:59 AM
http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/form/adv-vtypes.html