Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    244
    Vote Rating
    0
    senacle is on a distinguished road

      0  

    Default Checkbox not checked by default

    Checkbox not checked by default


    Hello,

    I've a checkbox i want to be checked by default.
    But it doesn't work.

    My code which doesn't check the checkbox (i give very simple example, without all the config of my formpanel) :
    Code:
        var my_form = new Ext.FormPanel({
            hidden: 'true',
            items: [{
                columnWidth: 0.55,
                defaults: {labelStyle: 'font-weight:bold; color:#990033;'},
                items: [{
                    checked: true,
                    xtype: 'checkbox'
                }],
                layout: 'form',
                xtype: 'panel'
            }],
            layout: 'column'
        });

    If the hidden property of my_form is set to false, it's OK.
    If the hidden property of my_form is set to true, and after with some code i show the my_form, the checkbox appears not checked.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,918
    Vote Rating
    443
    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  

    Default


    This works for me:

    Code:
        var my_form = new Ext.FormPanel({
            hidden: true,
            title: 'form',
            height: 100,
            width: 200,
            items: [{
                xtype: 'checkbox',
                fieldLabel: 'check',
                checked: true,
            }],
            renderTo: Ext.getBody()
        });
        
       my_form.setVisible(true);
    Regards,
    Scott.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi