RadToolTipService.SetToolTipContent generates null exception

6 posts, 0 answers
  1. Edward
    Edward avatar
    13 posts
    Member since:
    Oct 2013

    Posted 22 Sep 2014 Link to this post

    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
  2. Edward
    Edward avatar
    13 posts
    Member since:
    Oct 2013

    Posted 22 Sep 2014 in reply to Edward Link to this post

    Calling RadToolTipService.SetToolTipContent(element, message) on element.TextChanged event... 

  3. DevCraft banner
  4. Edward
    Edward avatar
    13 posts
    Member since:
    Oct 2013

    Posted 23 Sep 2014 in reply to Edward Link to this post

    If call RadToolTipService.SetToolTipContent(element, message) on element.LostFocus, don't get this error.  Just have need to call it on TextChanged...
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 23 Sep 2014 Link to this post

    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.
     
  6. Edward
    Edward avatar
    13 posts
    Member since:
    Oct 2013

    Posted 24 Sep 2014 in reply to Petar Mladenov Link to this post

    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.
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 24 Sep 2014 Link to this post

    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.
     
Back to Top
DevCraft banner