1. #1
    Ext User
    Join Date
    Jun 2009
    Posts
    2
    Vote Rating
    0
    gxtdev is on a distinguished road

      0  

    Default ComboBox render(..) method issue

    ComboBox render(..) method issue


    The following code is working

    public void onModuleLoad()
    {
    ComboBox<State> box = new ComboBox<State>();
    State state = new State()
    state.setName("California");
    state.setCode("CA");
    ListStore<State> store = new ListStore<State>();
    store.add(state);
    box.setStore(store);
    box.setDisplayField("name");
    RootPanel.get().add(box);
    }


    The following code display's the combobox but it will not display any data. I think it is in disable mode. Don't know why?

    public void onModuleLoad()
    {
    ComboBox<State> box = new ComboBox<State>();
    State state = new State()
    state.setName("California");
    state.setCode("CA");
    ListStore<State> store = new ListStore<State>();
    store.add(state);
    box.setStore(store);
    box.setDisplayField("name");
    box.render(RootPanel.getBodyElement());
    }


    Any idea why it is failing? Other than combobox rest of the GXT fields it is working.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    It is not attached if you only render it.

  3. #3
    Ext User
    Join Date
    Jun 2009
    Posts
    2
    Vote Rating
    0
    gxtdev is on a distinguished road

      0  

    Default


    You mean attaching to the dom? or attaching the store to the combox box?

    If it is not attached to the DOM I can not see a combobox. But I can see a combobox without store data

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