1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    17
    Vote Rating
    0
    shobhaaradhya is on a distinguished road

      0  

    Default Unanswered: How to get fieldlabel of combo in javascript

    Unanswered: How to get fieldlabel of combo in javascript


    Hi,

    My script for combo in extjs is

    {
    xtype: 'combo',
    fieldLabel: 'Select Country',
    anchor: '39%',
    allowBlank: true,
    validateOnBlur: true,
    name: 'Country',
    listEmptyText: 'Please Select country',
    emptyText: 'Please Select country',
    selectOnFocus: false,
    store: 'dcountry',
    vtypeText: 'Please Select country',
    resizable: true,
    mode: 'local',
    valueField: 'id',
    displayField: 'description',
    loadingText: 'Loading countries...',
    forceSelection: true,
    triggerAction: 'all',
    labelStyle: 'width:160px',
    hiddenName: 'Country',
    hidden: true,
    hideLabel: true,
    id: 'cntry',

    }

    Here i am trying to hide or show the combo and the label based on some condition.

    the code is

    Ext.getCmp('cntry').hide();
    Ext.getCmp('cntry').show();

    this hides/shows only the combo but not the lablefield.

    how can I get do this?

    Thanks in advance,
    Aradhya

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    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
    You can wrap your combo into a container and show or hide your container according to your need.
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

Tags for this Thread

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..."