According to the
documentation, you can use
select()
or
set_selected(true)
function.
Looking at your code, it seems like your are doing it right. You just have to make sure that the value of
rlvControllers._dataSource[itemIndex].FORMLAYOUT
that you passed in the
findItemByText()
method exist in your dropdownlist
DataTextField
or else it won't work. One thing to note that you could also use the
findItemByValue()
method if you want to select the value based on the dropdownlist
DataValueField
.