1. #1
    Sencha User
    Join Date
    Dec 2009
    Location
    chennai
    Posts
    25
    Vote Rating
    0
    veerai2i is on a distinguished road

      0  

    Default How to tick a checkbox in FormPanel while editing,according to the stored value.

    How to tick a checkbox in FormPanel while editing,according to the stored value.


    I enabled a checkbox and saved it.But while retriving for editing that checkbox is not enabling or ticking.

    My code.


    var form3 = new Ext.FormPanel({
    labelWidth : 150,
    defaultType: 'radio',
    border:false,
    bodyStyle : 'padding: 5px',
    defaults : {
    border : false,
    },

    items:[{
    xtype: 'label',
    id: 'RelatedSection',
    name: 'Related Section',
    text: 'Related Section',
    },
    {
    xtype: 'checkbox',
    id: 'relatedSection',
    disabled : isOnUpdate,
    value : Ext.getCmp('relatedSection').setValue(),
    handler: function() {
    if(this.getValue() == true)
    {
    formfield1.container.up('div.x-form-item').show();
    formfield2.container.up('div.x-form-item').show();
    }
    else
    {
    formfield1.container.up('div.x-form-item').hide();
    formfield2.container.up('div.x-form-item').hide();
    }
    }
    },



    please tell me how to tick this checkbox according to the db stored value.

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2011
    Location
    Amsterdam
    Posts
    52
    Vote Rating
    -3
    sblommers is infamous around these parts

      0  

    Default


    Does not look like Ext GWT you are posting here. Are you sure you are posting this in the correct forum?

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