Completed
Last Updated: 06 Nov 2014 12:04 by ADMIN
ADMIN
Vladi
Created on: 17 Oct 2014 14:48
Category: AutoCompleteBox
Type: Bug Report
2
The highlighted item of the drop down is lost if that drop down is opened and the ItemsSource of the control is replaced with a source which contains the old highlighted item
HighlightedIndex is lost when the drop down is opened and the ItemsSource is replaced.
6 comments
ADMIN
Vladi
Posted on: 06 Nov 2014 07:52
Hi Pooja,

We received your support ticket and we will respond to you in that thread.
Pooja
Posted on: 05 Nov 2014 15:30
Hi Vladimir,

Overriding Equals does not resolve the highlighting issue completely. If I type 'A' and the first item in the dropdown is Country{Name=Austrialia} it gets highlighted, then the ItemSource changes and the first item now is Country {Name=Austria}. Austria is not getting highlighted. The source changes again and now the Country{Name=America}  gets highlighted. The issue here is with the InvalidateHighlightedIndex method in the AutoCompleteHelper.cs. 

I had also posted this info @
http://www.telerik.com/forums/autocompletebox-loses-highlighting-when-the-item-collection-changes-while-the-autocompletebox-is-active-and-the-popup-is-open-66b627941d96

Regards,
Pooja 
ADMIN
Vladi
Posted on: 05 Nov 2014 09:52
Hi Pooja,

We tested the issue with both the old and the new 2014.3.1103 version of RadAutoCompleteBox and the issue is not reproducible in that version of the control. I recorded a short video shows the observed behavior on outside. 

Note that if your ItemsSource collection contains custom business objects in order for the highlighted item to not be lost in the described reset scenario you will need to override that business object's Equals() method. This is necessary because of the way the .NET Framework sometimes compares custom objects. If you continue to experience issues please open a new support thread and continue the discussion there.
Pooja
Posted on: 04 Nov 2014 19:01
Hi Vladimir,

We tried using the 2014.3.1103 internal build and the problem still exists. The highlighting disappears when the drop down is open and the ItemsSource of the control is replaced.

Issue - http://www.telerik.com/forums/autocompletebox-loses-highlighting-when-the-item-collection-changes-while-the-autocompletebox-is-active-and-the-popup-is-open-66b627941d96

Regards,
Pooja
ADMIN
Vladi
Posted on: 04 Nov 2014 08:55
The fix for this issue is available in our 2014.3.1103 internal build.
Pooja
Posted on: 31 Oct 2014 17:27
Thank you, I see the status now is completed. Which release will fix this bug?