1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
    chandan.behura is on a distinguished road

      0  

    Default window in MVC

    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,081
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

Thread Participants: 1

Tags for this Thread