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

RadToolTipService.SetToolTipContent generates null exception

5 Answers 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 23 Sep 2014, 04:45 AM
Calling RadToolTipService.SetToolTipContent(element, message) generates unhandled exception:

   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
   at Telerik.Windows.Controls.RadToolTipService.GetToolTipObject(FrameworkElement rootVisual)
   at Telerik.Windows.Controls.RadToolTipService.OnMouseLeaveElement(FrameworkElement element)
   at Telerik.Windows.Controls.RadToolTipService.OnMouseLeaveElement(Object sender, MouseEventArgs e)
   at Telerik.Windows.Controls.RadToolTipService.<RegisterTooltip>b__2(FrameworkElement instance, Object source, MouseEventArgs eventArgs)
   at Telerik.Windows.WeakEventListener`3.OnEvent(TSource source, TEventArgs eventArgs)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

The element is a TextBox

5 Answers, 1 is accepted

Sort by
0
Edward
Top achievements
Rank 1
answered on 23 Sep 2014, 04:53 AM
Calling RadToolTipService.SetToolTipContent(element, message) on element.TextChanged event... 

0
Edward
Top achievements
Rank 1
answered on 23 Sep 2014, 05:35 AM
If call RadToolTipService.SetToolTipContent(element, message) on element.LostFocus, don't get this error.  Just have need to call it on TextChanged...
0
Petar Mladenov
Telerik team
answered on 23 Sep 2014, 02:32 PM
Hi Edward,

We tried to reproduce such issue in an isolated test project we did not succeed. Could you please have a look at the attached project and modify it where needed in order to reproduce this exception ? Also, is it possible for you to test your application with our latest official Release ?

Regards,
Petar Mladenov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Edward
Top achievements
Rank 1
answered on 24 Sep 2014, 06:42 AM
I did reproduce it by using the version of Telerik.Windows.Controls.dll I have.

Product version: 2014.1.0331.1050
File version: 2014.1.331.1050

Will try downloading latest and using those.
0
Petar Mladenov
Telerik team
answered on 24 Sep 2014, 03:18 PM
Hello Edward,

Yes this is fixed in the latest Telerik UI For Silverlight version. We highly encourage you to upgrade to Q2 or the upcoming Q3 which is scheduled for mid-October.

Regards,
Petar Mladenov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
Edward
Top achievements
Rank 1
Answers by
Edward
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or