Results 1 to 2 of 2

Thread: How to show the child window and its components after closing?

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Location
    banglore
    Posts
    12

    Default How to show the child window and its components after closing?

    hi,i am using ext js to create a desktop user interface application, In that i am using menu items like grids, forms and windows,
    here my problem is,in some windows having more buttons(like menu), each and every buttons want to open a new window ,so i decided to
    create a handler-function its work well but when i closed the child window, after open it wont show simply window alone showing(the form elements are all disabled )
    im using the following format code for using each and every window...finally i ask how to show the child window compoents using functions?

    my code is:

    MyDesktop.GridWindow = Ext.extend(Ext.app.Module, {
    id:'grid-win',
    init : function(){
    this.launcher = {
    text: 'DASHBOARD', // table menu item
    iconCls:'icon-grid',
    handler : this.createWindow,//call a function
    scope: this
    }
    },

    createWindow : function(){ //handler function starts here
    var desktop = this.app.getDesktop();
    var win = desktop.getWindow('grid-win');
    if(!win){
    win = desktop.createWindow({
    id: 'grid-win',
    title:'Dashboard Grid',
    width:850,
    height:370,
    iconCls: 'icon-grid',
    shim:false,
    animCollapse:false,
    constrainHeader:true,

    layout: 'fit',
    items: [{xtype:'users_form',id:'adduserFrom'}], //namespace form to use here
    buttons:{{text:'close',handler:function(){win.close();}}]
    buttons: [{
    text: 'close',
    handler: function(){win.hide();}

    }],

    viewConfig: {
    forceFit:true
    },

    });
    }
    win.show(); //showing configured window
    }
    });

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    Might help if you post in the proper places. Moved to Ext JS help

Similar Threads

  1. Closing child tab but couldn't close items
    By turaku in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 12 Dec 2010, 8:56 PM
  2. [OPEN] [FIXED] Window that opens child Window - Menu displayed behind child
    By jonjanisch in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 10 Sep 2009, 8:58 AM
  3. Window resizing by its child components
    By g2mac in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 12 Aug 2009, 7:38 AM
  4. closing the dialog from child page; How?
    By noname in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 17 Jun 2007, 12:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •