Force tooltip to stay open

4 posts, 0 answers
  1. Roberto
    Roberto avatar
    2 posts
    Member since:
    Nov 2014

    Posted 26 Nov 2014 Link to this post

    Hi,

    I have seen that there is a Sticky property in the WPF version of RadToolTip, is there any similar or alternate way to achieve the same with the Silverlight version?

    Thanks
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 27 Nov 2014 Link to this post

    Hello Roberto,

    Which property do you have in mind exactly ? Basically the RadToolTip shares common APi between WPF and Silverlght.

    If you create the RadToolTip in code behind without using RadToolTipService it is up to you to decide when / how / whether to open the RadToolTip and when / whether to close it with using its IsOpen property.  


    Regards,
    Petar Mladenov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Roberto
    Roberto avatar
    2 posts
    Member since:
    Nov 2014

    Posted 27 Nov 2014 in reply to Petar Mladenov Link to this post

    Thanks, I have done that. I have created a ToolTip in code behind and used the RadToolTipService to set the tooltip to the control. However, I'm getting an exception that I don't get with the standard ToolTip when trying to set IsOpen to true inside an event.

    {System.ArgumentNullException: Value cannot be null.
    Parameter name: format
       at System.String.Format(IFormatProvider provider, String format, Object[] args)
       at Telerik.Windows.Controls.SRLoader`1.GetString(String defaultNamespace, String name, Object[] args)
       at Telerik.Windows.Controls.SR.GetString(String name, Object[] args)
       at Telerik.Windows.Controls.RadToolTip.CreateRootPopup(Popup popup, FrameworkElement child)
       at Telerik.Windows.Controls.RadToolTip.HookupRootPopup()
       at Telerik.Windows.Controls.RadToolTip.CreateRootPopupIfNeeded()
       at Telerik.Windows.Controls.RadToolTip.OpenPopup()
       at Telerik.Windows.Controls.RadToolTip.OnIsOpenChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
       at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
       at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.Windows.Controls.RadToolTip.set_IsOpen(Boolean value)
       at MyControl.<>c__DisplayClass1.<.ctor>b__0(Object obj, RoutedEventArgs ev)
       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)}
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 28 Nov 2014 Link to this post

    Hello Roberto,

    Could you please elaborate a bit more on your scenario and how you set up your tooltip ?
    For Q3 release we fixed an exception with similar stack trace like yours , is it possible for you to test your scenario with Q3 dlls, it should be fixed ?
    Also , there is no need to create a RadToolTip and then use RadToolTipService (RTTS) over it. This will create two nested tooltips because RTTS creates RadToolTip internally. You need to either create RadToolTip or use only RTTS without creating RadToolTip on your own.

    Regards,
    Petar Mladenov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top