1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    14
    Vote Rating
    0
    jayashree.ram is on a distinguished road

      0  

    Default 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);
    });

  2. #2
    Sencha User 123lal's Avatar
    Join Date
    Feb 2012
    Posts
    32
    Vote Rating
    0
    123lal is on a distinguished road

      0  

    Default

    Code:
    menu : [
    {
    xtype:'datefield',
    fieldLabel:'Date picker',
    name:'dtpk1'
    
    },{
    xtype:'datefield',
    fieldLabel:'Date picker',
     name:'dtpk1' 
    }
    
    ]
    I think you have to change the name in the second date field

    Code:
    menu : [
    {
    xtype:'datefield',
    fieldLabel:'Date picker',
    name:'dtpk1'
    
    },{
    xtype:'datefield',
    fieldLabel:'Date picker',
     name:'dtpk2' 
    }
    
    ]
    123lal

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    14
    Vote Rating
    0
    jayashree.ram is on a distinguished road

      0  

    Default

    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...

Thread Participants: 1