RadAutoCompleteBox ItemControl's timing issue.

1 Answer 25 Views
AutoCompleteBox
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Psyduck asked on 28 Jun 2021, 08:35 AM

Hello.

When using RadAutoCompleteBox, an error occurs in the debug output if the tab is changed.

[System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadWatermarkTextBox']

The issue has been around for a long time. I heard it's a wpf timing issue.

I also found this issue on the feedback portal.
https://feedback.telerik.com/wpf/1351336-a-binding-error-is-printed-in-the-output-on-start-up-for-elementname-watermarktextbox

Are you still using the above post and can't fix it?

 

Thanks.


1 Answer, 1 is accepted

Sort by
1
Accepted
Dinko
Telerik team
answered on 01 Jul 2021, 07:58 AM

Hi KIM,

Thank you for the provided project.

I was able to reproduce this behavior in the attached project. The answer is yes, this error is still relevant to the one explained in the feedback item. I have tested the workaround and the error does not appear anymore. Can you add the following code on your side?

public partial class MainWindow : Window
{
    public MainWindow()
    {
        System.Diagnostics.PresentationTraceSources.DataBindingSource.Switch.Level = System.Diagnostics.SourceLevels.Critical;
        InitializeComponent();
    }
}

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
commented on 02 Jul 2021, 01:11 AM

I know the source you provided. In fact, the error no longer appears.
However, since it ignores other errors, it is not used because there is a risk.

Thank you.
Tags
AutoCompleteBox
Asked by
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Answers by
Dinko
Telerik team
Share this question
or