1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    5
    Vote Rating
    0
    jagadeesh9.k is on a distinguished road

      0  

    Default ComboBox selection is not visible

    ComboBox selection is not visible


    I am using gxt ComboBox , in the field drop down it is showing values, but when i select a value from the drop down list it is now visible(disappearing). Here i am using setTemplate(), is there any problem with this. Please suggest me.

    Thanks in advance.

    Code:

    private void configureComboBox() {
    templateCombo.setEmptyText("Select a state...");
    templateCombo.setDisplayField("name");
    templateCombo.setTemplate(getTemplate(WYGCityWithStateModel.cityField,
    WYGCityWithStateModel.cityStateField));

    templateCombo.setWidth(150);
    templateCombo.setStore(store);
    templateCombo.setTypeAhead(true);
    templateCombo.setTriggerAction(TriggerAction.ALL);
    }

    private native String getTemplate(String stateFieldName,
    String cityFieldName) /*-{
    return [
    '<tpl for=".">',
    '<div class="x-combo-list-item">{values.' + cityFieldName
    + '} ({values.' + stateFieldName + '})</div>', '</tpl>' ]
    .join("");
    }-*/;

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Nov 2010
    Posts
    209
    Vote Rating
    -2
    Ersmarker has a little shameless behaviour in the past

      0  

    Default


    The ComboBox will display the value from difined by
    templateCombo.setDisplayField("name");
    I guess you don't have that property in your ModelData
    Try changing to:
    templateCombo.setDisplayField(WYGCityWithStateModel.cityStateField);


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..." hd porno faketaxi