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.

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
    hieu79vn is an unknown quantity at this point

      0  

    Default Unanswered: Cannot get button by find field and name

    Unanswered: Cannot get button by find field and name


    Hello

    I have an Ext.form.panel, and I can get its component by
    this.getForm().findField('xxx').setDisabled(bool);
    this.getForm().findField('yy').setReadOnly(bool);

    but I cannot use findField for buttons which are direct children or children of an xtype: 'container' in the form

    Thank you

  2. #2
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,082
    Answers
    24
    Vote Rating
    41
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      0  

    Default


    why not use componentQuery built into formpanel to get items.

    Code:
    allFields = form.query('field,button');
    allFields.each(funtion(item,index,allfields) {
    item.setDisabled = true;
    item.setReadOnly = true;
    });

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
    hieu79vn is an unknown quantity at this point

      0  

    Default


    Hi Dawesi
    Thank you for your answer but I would like to disable only some items

Thread Participants: 1