This is a migrated thread and some comments may be shown as answers.

Support for INotifyCollectionChanged?

2 Answers 73 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 28 Apr 2013, 11:02 PM
Hi,

Does this control support INotifyCollectionChanged? 
I've tried to create a small sample but I'm having issues with the DropDown disappearing (even thou it claims that IsDropDownOpen = true). The control does recognize that there are items (i.e. If I press up/down, it will cycle through and suggest the various items), but it does not display the drop down. 

I'm running version: 2013.1.220.1050


------
My overall goal is to make async web calls to populate the AutoComplete box, (using the search text as a parameter in my web methods). In my small sample, I am just using a dispatcher time to "simulate" the async population of my ObservableCollection
 
----

I've opened up a support ticket:
687603
And uploaded a sample application. 

---
*edit* fixed typos

2 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 30 Apr 2013, 02:43 PM
Hello Alex,

I am copying the reply from the support thread:

We reproduced this at our side and we can confirm it is an issue with RadAutoCompleteBox. I have logged this into our PITS and you can track its status here. We will do our best to include a fix for it into 2013 Q2 SP1.

Kind regards,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Alex
Top achievements
Rank 1
answered on 30 Apr 2013, 10:38 PM
As a temporary work around, I've discovered that it is possible to produce the desired effect (of changing the items) by changing the ItemsSource

e.g. In my sample, it is bound to ViewModel.Items, I simple replace the ViewModel.Items collection with a new collection (with the wanted items), ViewModel.RaisePropertyChanged("Items"), and it will work.
(Note, when doing this, you must not modify the original collection, as that appears to be causing the issues)
Tags
AutoCompleteBox
Asked by
Alex
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Alex
Top achievements
Rank 1
Share this question
or