Results 1 to 2 of 2

Thread: window in MVC

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
      0  

    Default window in MVC

    Hi,

    I am facing problem in creating popups on click of a hyper link in MVC str.
    Not getting the proper way to call the window instances in the controller.
    Some issues like after closing by (X) the pop up not comming again.
    As i have to show 15 pop-ups so i defined one window(Ext.define) and want to create more from that abd should able to call in controller.

    In window:
    Code:
    Ext.define('LLSO.view.deliveryGroupPerformance.summary.DGPSummaryPopUp', {
        extend : 'LLSO.view.components.PopUp',
        alias : 'widget.dgpsummarypopup',
        id : 'dgpsummarypopup',
        title : 'dgpsummarypopup',
        requires : [ 'LLSO.view.components.CheckGrid' ],
        action : 'closeRegion',
        initComponent : function() {
            this.items = [
            {
                xtype : 'checkgrid',
                itemId : 'checkgridg',
                id : 'checkgridIdg',
                store : 'deliveryGroupPerformances.RegionStore',
                columns : [ {
                    menuDisabled : true,
                    dataIndex : 'region',
                    text : 'All',
                    flex : 1
                } ]
            } ];
            this.callParent(arguments);
        },
        layout : {
            type : 'vbox',
            align : 'right'
        }
    
    });
    //regionPopUp = Ext.create('LLSO.view.deliveryGroupPerformance.summary.DGPSummaryPopUp',
        //    {
        //    }); //wants doing somthing like that
    controller:
    Code:
        onRender : function(component) {
            component.getEl().on('click', function(e) {
             regionPopUp =new LLSO.view.deliveryGroupPerformance.summary.DGPSummaryPopUp;
             regionPopUp.showAt(80,120);
            //regionPopUp =Ext.widget('dgpsummarypopup');
            //regionPopUp.showAt(80, 120);//wants doing somthing like that
            });
        },

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,388
    Vote Rating
    499
      0  

Tags for this Thread

Posting Permissions

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