[CLOSED] set combobox by index and not by value

  1. #1

    [CLOSED] set combobox by index and not by value

    I know combobox.setselectedindex is readonly but is there a way to set the combobox to the first item when the page first loads if I don't know what the value of the first item.
    thanks
    idriss
  2. #2

    RE: [CLOSED] set combobox by index and not by value

    Hi,

    You can use the following Store's lisetner


    <Load Handler="#{Combo1}.setValue(this.getAt(0).get(#{Combo1}.valueField))" Single="true" Delay="100" />
  3. #3

    RE: [CLOSED] set combobox by index and not by value

    Thanks, Vlad
    much appreciated
  4. #4

    RE: [CLOSED] set combobox by index and not by value

    Bumping thread.

    Need to discuss a cleaner way of enabling this functionality.

    Geoffrey McGill
    Founder
  5. #5

    RE: [CLOSED] set combobox by index and not by value

    This would be appreciated since I load my store at page load and I receive a JS error since the combo box control doesn't exist yet...
  6. #6

    RE: [CLOSED] set combobox by index and not by value

    May be we can set the value on document ready when both the controls are available to the page...
  7. #7

    RE: [CLOSED] set combobox by index and not by value

    Hi,

    Selection by index is added to the 0.8.2 and 1.0
    Now SelectedIndex property is read/write

Similar Threads

  1. [CLOSED] Problem with combobox data index store
    By mcfromero in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 04, 2012, 8:13 AM
  2. [CLOSED] Bug with ComponentMenu and ComboBox list z-index
    By pil0t in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 02, 2010, 4:14 PM
  3. Replies: 6
    Last Post: Jul 31, 2009, 1:45 PM
  4. Replies: 0
    Last Post: May 22, 2009, 7:59 AM
  5. Replies: 0
    Last Post: May 16, 2009, 12:31 PM

Posting Permissions