Completed
Last Updated: 05 Oct 2016 13:27 by ADMIN
ADMIN
Stefan
Created on: 28 Sep 2016 06:18
Category: UI Framework
Type: Bug Report
1
FIX. TPF - tooltips are not thread safe
When a child form is opened in a new thread, and tooltips are used in the child form, cross thread exception is thrown, due to the fact that RadToolTip internally uses a static control instance.

 public class ManagedThread
    {
        private Thread _thread;
        public ManagedThread()
        {
            _thread = new Thread(new ThreadStart(OpenNew));
        }

        private void OpenNew()
        {
            Child form = new Child();
            form.Text = "my text";
            form.ShowDialog();
        }
}

The second time the child form is opened, when you try to show tooltips of a control e.g. RadDropDownList with ToolTipTextNeeded, the exception is thrown.

Workaround: use screentips instead of tooltips: http://docs.telerik.com/devtools/winforms/treeview/how-to/assign-radscreentip-to-nodes
2 comments
ADMIN
Stefan
Posted on: 04 Oct 2016 08:16
It it with all controls, and the fix will apply to them all.
Eduardo
Posted on: 28 Sep 2016 14:42
Is this the problem with your dropdown list or all telerik controls having tooltip functionality? Just confirming because we might have this problem with other controls too