Hi,
I'm having big troubles with the AutoCompleteBox control.
My view has a RadGridView with its ItemsSource binded to an ObservableCollection of objects. One column of this GridView contains an AutoCompleteBox that works well. But this AutoCompleteBox produces the following errors at runtime:
System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadWatermarkTextBox'
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=WatermarkTextBox'. BindingExpression:Path=ActualWidth; DataItem=null; target element is 'AutoCompleteBoxesWrapPanel' (Name=''); target property is 'Width' (type 'Double')
I found several threads about that. They basically say that it's no big deal, "just ignore it", or disable the errors with a piece of code in the code behind. (http://www.telerik.com/forums/autocomplete-watermark-binding-error)
My problem is that, it is actually pretty bad for performance. For example, when I'm scrolling horizontally in my GridView, and I get to the column where my AutoCompleteBox is, the GridView freezes for a second, and stops scrolling. That's one thing.
The second thing is, my GridView has the Virtualization turned off for some reasons. That means, when my GridView is rendered, those errors are produced for EVERY line of my GridView, and the application freezes until all errors are outputed. That makes the application unusable when dealing with a big number of lines (1000 to 10 000 in my case).
Has anyone fixed this issue somehow ?
Thanks.