1. #1
    Ext GWT Premium Member
    Join Date
    Aug 2011
    Location
    Germany
    Posts
    30
    Vote Rating
    0
    Ceene is on a distinguished road

      0  

    Default Answered: select a item in a ComboBox

    Answered: select a item in a ComboBox


    Hey

    I have a problem with my ComboBox. In my ComboBox are two rows and I would like to select manualy the second row. I tried it with comboBox.select(1) but it doesn't work.

    Code:
     
    privat
    List<ComboMultiSign> getComboEintrag() { List<ComboMultiSign> plants = new ArrayList<ComboMultiSign>(); plants.add(new ComboMultiSign("J", "Ja")); plants.add(new ComboMultiSign("N", "Nein")); return plants; }


    Code:
     
    ListStore<ComboMultiSign> multi =
    new ListStore<ComboMultiSign>();
    multi.add(getComboEintrag());
    cbMultiSign.setStore(multi);
    cbMultiSign.select(1);
    
    Where is my mistake?

  2. Code:
    cbMultiSign.setValue(cbMultiSign.getStore().getAt(1));

  3. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Answers
    60
    Vote Rating
    130
    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


    Code:
    cbMultiSign.setValue(cbMultiSign.getStore().getAt(1));

  4. #3
    Ext GWT Premium Member
    Join Date
    Aug 2011
    Location
    Germany
    Posts
    30
    Vote Rating
    0
    Ceene is on a distinguished road

      0  

    Default


    Thanks a lot. Wonderful.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar