Why does my Flextras AutoCompleteComboBox not select a default item?
Note: This anomaly was addressed in version 1.1 of our AutoCompleteComboBox. We added a new property named AutoCompleteResetIndex.
One of our customers found an issue with the Flextras AutoCompleteComboBox. If you have AutoCompleteEnabled set to true, then the ComboBox would move to the unselected state, where selectedIndex = -1.
If you're using a standard ComboBox, and are not using the prompt, then the ComboBox will default to index 0 with the selected state. During our development, we made the assumption that if you are using AutoComplete functionality, you will not want a default selected value. Based on other uses of AutoComplete I have seen, I'm not sure our assumption was wrong.
The work around is to use our selectedValue property to set the default. Something like this:
selectedValue="1" valueField="data" />
Where your dataProvider is something like this:
{label:'Alabama',data:1},
{label:'Alaska',data:2},
]);
Unfortunately, if you use selectedItem or selectedIndex then our AutoComplete code resets the selectedIndex to -1. Did we miss the boat here? Is this a bug or a feature?




There are no comments for this entry.
[Add Comment] [Subscribe to Comments]