Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Threaded View

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    2
    Vote Rating
    0
    diywindow@gmail.com is on a distinguished road

      0  

    Default Answered: How to select a window widget in MVC this.control

    Answered: How to select a window widget in MVC this.control


    I use tabPanel open two Controller,share a window,Event triggered two times?

    but can not use 'AView #gp_materiallist'


    AController:
    Code:
    init: function () {
    this.control({
    'button[action=btn_openwindow]': {
    click: function(){Ext.widget('MaterialInfoWindow').show();}
    },
    '#gp_materiallist': {
    itemdblclick: this.selectMaterialInfo
    }
    });
    },
    selectMaterialInfo: function (gridpanel, record) {
    ....
    }
    BController:
    Code:
    init: function () {
    this.control({
    'button[action=btn_openwindow]': {
    click: function(){Ext.widget('MaterialInfoWindow').show();}
    },
    '#gp_materiallist': {
    itemdblclick: this.selectMaterialInfo
    }
    });
    },
    selectMaterialInfo: function (gridpanel, record) {
    ....
    }
    ShareWindow:
    Code:
    Ext.define('myMVC.view.windows.MaterialInfoWindow', {
        extend: 'Ext.window.Window',
        alias: 'widget.MaterialInfoWindow',
    
    
    initComponent: function () {
            var me = this;
    
    
            Ext.applyIf(me, {
                items: [
                    {
                xtype: 'gridpanel',
                        itemId: 'gp_materiallist',
                        store: 'MaterialStore',
                        header: false,
                        forceFit: true,
            columns: [
                            {
                                xtype: 'rownumberer'
                            }
            ],
                        viewConfig: {
    
    
                        },
                        selModel: Ext.create('Ext.selection.RowModel', {
    
    
                        })
    
    
    }]
    });

  2. Event is triggered twice because in both controllers you are using '#gp_materiallist'. I'm not sure what you want.

Thread Participants: 1

Tags for this Thread