-
20 Mar 2012 5:21 PM #1
Date is not displayed when the date is selected from datefield.
Date is not displayed when the date is selected from datefield.
Date is not displayed when the date is selected from datefield.
I am having datefields in menubutton.But as soon as i select date from datepicker the datefield disappears.
here is the code which i hav written.Can anyone pls reply asap....

Ext.onReady(function(){
Ext.QuickTips.init();
var simple = Ext.create('Ext.form.Panel', {
url:'save-form.php',
frame:true,
title: 'Simple Form',
bodyStyle:'padding:5px 5px 0',
width: 350,
fieldDefaults: {
msgTarget: 'side',
labelWidth: 75
},
items: [
{
xtype:'button',
fieldLabel:'Filter button',
text:'Filter',
id:'filter',
menu : [
{
xtype:'datefield',
fieldLabel:'Date
picker',
name:'dtpk1'
},{
xtype:'datefield',
fieldLabel:'Date picker',
name:'dtpk1'
}
]
}
]
});
simple.render(document.body);
});
-
21 Mar 2012 4:25 AM #2
I think you have to change the name in the second date fieldCode:menu : [ { xtype:'datefield', fieldLabel:'Date picker', name:'dtpk1' },{ xtype:'datefield', fieldLabel:'Date picker', name:'dtpk1' } ]
123lalCode:menu : [ { xtype:'datefield', fieldLabel:'Date picker', name:'dtpk1' },{ xtype:'datefield', fieldLabel:'Date picker', name:'dtpk2' } ]
-
21 Mar 2012 9:09 PM #3
But still its not workin,as soon as i select a date, the entire datefields disappears, and also if i open it agian, it wont show me the date which i hav previously selected..Please give the solution...


Reply With Quote