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.

Hybrid View

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    1
    Vote Rating
    0
    yellowhat89 is on a distinguished road

      0  

    Default Combo box failed to set focus to another element

    Combo box failed to set focus to another element


    Hello,

    I'm have combo box like this:
    Code:
    var groupLab = new Ext.form.ComboBox({
        id: 'groupLab',
        name: 'groupLab',
        fieldLabel: 'Kelompok',
        emptyText: '',
        valueField:'id',
        displayField:'val', 
        selectOnFocus:true,
        forceSelection: true,
        typeAhead: true,
        triggerAction: 'all',
        listWidth: 150,
        mode: 'local',
        store: groupLabStore,
        anchor:'95%',
        listClass: 'x-combo-list-small',
        listeners:{
            select:{
                fn:function() {
                    Ext.getCmp('saveGr').focus('', 10);
                }
            }
        }
    })
    on select event I want the focus change to a button. But, the focus did not change. But when i set the focus to textfield, the focus is change.
    So can anyone can help me to fix this?

    Code:
    var frmDataLayanan = new Ext.FormPanel({
        id : 'frmDataLayanan',
        height: 100,
        autoScroll:true,
        frame : true,
        title : 'Layanan Px',
        iconCls : 'form',
        border : true,
        labelAlign : 'left',
        bodyStyle : 'padding:5px 5px 0 15px',
        labelWidth : 100,
        items: [{
            layout:'column',
            border:false,
            autoHeight: true,
            items:[{
                columnWidth:.33,
                layout: 'form',
                border:false,
                items: [listKelLab,groupLab]
            },{
                columnWidth:.33,
                layout: 'form',
                border:false,
                items: [childLab,{
                    xtype: 'button',
                    iconCls: 'icon-save',
                    id:'saveGr',
                    text: 'Simpan Kelompok',
                    handler: function(){
                        alert('tunggal')
                    }
                }]
            }
        }]
    });

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi yelowhat89,

    Try to put debugger before Ext.getCmp('saveGr') and test it you get the correct button reference,
    focus('', 10) method should be work for button too.
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1