Completed
Last Updated: 10 Jul 2014 14:24 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 30 May 2014 06:55
Category: Editors
Type: Bug Report
0
FIX. RadSpinEditor - Screentip is not closed when the mouse leaves the control moving down
To reproduce: use the following code:

this.radSpinEditor1.ScreenTipNeeded += screenTipNeeded;

 private void screenTipNeeded(object sender, Telerik.WinControls.ScreenTipNeededEventArgs e)
 {
     Console.WriteLine(e.Item);
     RadOffice2007ScreenTipElement screenTip = e.Item.ScreenTip as RadOffice2007ScreenTipElement;
     if (screenTip == null)
     {
         e.Item.ScreenTip = new RadOffice2007ScreenTipElement();
         screenTip = e.Item.ScreenTip as RadOffice2007ScreenTipElement;
     }
     screenTip.CaptionLabel.Text = "Title of tooltip";
     screenTip.MainTextLabel.Text = "Text of tooltip";
 }


Workaround:

this.radSpinEditor1.SpinElement.TextBoxItem.HostedControl.MouseLeave += radSpinEditor1_MouseLeave;

 private void radSpinEditor1_MouseLeave(object sender, EventArgs e)
 {
     if (this.radSpinEditor1.SpinElement.TextBoxItem.ScreenTip != null)
     {
         this.radSpinEditor1.ElementTree.ComponentTreeHandler.Behavior.HideScreenTip();
     }
 }


0 comments