AutoCompleteBox binding errors

2 posts, 0 answers
  1. Maxime
    Maxime avatar
    3 posts
    Member since:
    Oct 2015

    Posted 08 Oct 2015 Link to this post

    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.

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 12 Oct 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top