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

AutoCompleteBox binding errors

1 Answer 246 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Maxime
Top achievements
Rank 1
Maxime asked on 08 Oct 2015, 01:10 PM

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.

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 12 Oct 2015, 09:35 AM
Hello Maxime,

We are not aware of the observed by you issues of RadGridView and they should not be caused by the binding errors of RadAutoCompleteBox. These errors are in the Output and are not interfering with the application - they are related to a timing issue which gets resolved afterwards. After the control is completely loaded the binding is resolved - both your application , RadGridView and RadAutoCompleteBox should work properly.

So, without reproducing the issues on our side, we wont'be able to continue our investigation in order to provide you with some technical instructions how to resolve them.  That is why we would kindly ask you to open a support ticket (where attachments are allowed) and provide a sample project where the issues are reproducible. 

We hope the provided information about the errors will be helpful for you.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AutoCompleteBox
Asked by
Maxime
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or