1. #1
    Sencha User
    Join Date
    Jun 2007
    Posts
    35
    Vote Rating
    0
    nicosk is on a distinguished road

      0  

    Default Window contents appear only on first time

    Window contents appear only on first time


    Code:
    function loadPeriods(node)
    {
    	if (!Ext.getCmp(node.text)) {
    		var periodWin = new Ext.Window({
    			title		: '<p align="center">'+node.text+'</p>',
    			closable	: true,
    			id			: node.text,
    			draggable	: false,
    			modal		: true,
    			layout		:'fit',
    			width		: 400,
    			height		: 350,
    			plain		: true,
    			closeaction	: 'hide',
    			items		: [{
    				xtype : 'panel',
    				autoHeight: true,
    				items : [periodGrid, periodForm]
    			}]
    		});
    		periodDS.load();
    		periodWin.show();
    	}
    }
    First time the window is loaded


    The second time the window is loaded

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    97
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    closeaction -> closeAction

Thread Participants: 1