2 Replies Latest reply on Nov 12, 2010 9:40 PM by li xing

    How to set the selectedIndex when dataProvider is an XML object in DropDownList?

    li xing

      dataProvider was an XML object

       

      How to set the selectedIndex when dataProvider is an XML object in DropDownList?

       

      I do this:

       

      <s:DropDownList id="dropDownList" requireSelection="true" selectedIndex="2"
                      labelField="lastName" dataProvider="{employeeService.lastResult.employees.employee}"/>

       

      But always the first item is selected whatever the value of selectedIndex equals to.