May 18, 2012, 12:42 AM
[CLOSED] Can not select combobox items using store
Hi,
I have changed from using ListItems in a combobox to using a store. When I use a store there is nothing that I can do to make the selected item shown as selected.
There are two methods that I can take when using list items.
1) Call a javascript function after render to select the value
Can someone please tell me how to make a combobox show the selected value?
I have changed from using ListItems in a combobox to using a store. When I use a store there is nothing that I can do to make the selected item shown as selected.
There are two methods that I can take when using list items.
1) Call a javascript function after render to select the value
myCombo.Listeners.AfterRender.Handler = "#{myCombo}.setValue('" & CStr(value) & "');"
2) Add a listIem to the SelectedItems Collection to select the value.Dim selectedItem As New ListItem()
selectedItem.Value = CStr(value)
myCombo.SelectedItems.Add(selectedItem)
Neither of these methods work when I change to using a store, I can not understand why.Can someone please tell me how to make a combobox show the selected value?
Last edited by Daniil; May 21, 2012 at 8:38 AM.
Reason: [CLOSED]