Completed
Last Updated: 23 Jul 2014 12:05 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 28 Jan 2014 13:59
Category:
Type: Bug Report
1
FIX. RadDropDownList - AutoCompleteMode = Suggest does not always synchronize the selected index
To reproduce:
-add a RadDropDownList with  AutoCompleteMode = Suggest and follow the steps;

Basic steps:
1. Type into the textbox.
2. Select matching item.
3. Delete a character from the textbox and the drop down appears as expected.
4. Select the same item as the first selected.
5. Editor's Text remains the same.

Workaround:
public Form1()
{
    InitializeComponent();

    AutoCompleteSuggestHelper auto = this.radDropDownList1.DropDownListElement.AutoCompleteHelpers.First() as AutoCompleteSuggestHelper;
    auto.DropDownList.SelectedIndexChanged += DropDownList_SelectedIndexChanged;
}

private void DropDownList_SelectedIndexChanged(object sender, PositionChangedEventArgs e)
{
    RadDropDownListElement ddle = sender as RadDropDownListElement;
    if (radDropDownList1.SelectedIndex != ddle.SelectedIndex)
    {
        radDropDownList1.SelectedIndex = ddle.SelectedIndex;
    }
}
0 comments