Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Apr 2009
    Posts
    9
    Vote Rating
    0
    amotamed is on a distinguished road

      0  

    Default [CLOSED] Combobox in GXT 2.1

    [CLOSED] Combobox in GXT 2.1


    When using a combobox, you are able to change the setStore method post render but, it doesn't update the dropdown. I created a combobox, added a treestore with one element with a displayField value of "foo", I then have an event that switches the treestore to a new liststore with one item with a displayname of "foo1". If I click the dropdown, I see the display of "foo". Can setStore be updated to assert that the component hasn't been rendered or properly handle switching the liststore after rendering? Thanks. Below is the code:

    ListStore<ModelData> list = new ListStore<ModelData>();
    BaseModel first = new BaseModel();
    first.set("id", "1");
    first.set("name", "foo");
    list.add(first);
    cb.setDisplayField("name");
    cb.setStore(list);


    public void onClick(ClickEvent event)
    {
    ListStore<ModelData> list = new ListStore<ModelData>();
    BaseModel first = new BaseModel();
    first.set("id", "1");
    first.set("name", "foo1");
    list.add(first);
    cb.setStore(list);
    }

  2. #2
    Sencha User
    Join Date
    Sep 2009
    Posts
    289
    Vote Rating
    0
    diegolovison is on a distinguished road

      0  

    Default


    your code its wrong..

    you need manipule the SAME store..
    • removing
    • adding
    • updating

    have various examples in the 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