Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
Tooltips appearing randomly
posted

Hi all,

I have a number of grids in my application where we are adding a column at runtime to contain a button which when clicked will open up another form of some sort.  Each of those buttons has an icon, and a tooltip associated with it to let the user know it's functionality.  The problem is that the tooltips seem to pop up while the mouse pointer is at random points around the screen and not just when they should.  It's also a very irratic behavior, meaning that sometimes it happens, and sometimes it doesn't, which of course is making it very hard to track down and recreate.

Wondering if anyone else has run into this problem?  I have included a code sample to show how we are triggering the tooltips, as well as a screen image to show the problem.

Thanks in advance!

 private void grdItemization_MouseEnterElement(object sender, UIElementEventArgs e)
        {
            if (!(e.Element is CellUIElement))
            {
                return;
            }

            if (((Infragistics.Win.UltraWinGrid.CellUIElementBase)(e.Element)).Column.Key.ToLower() == "delete")
            {
                ShowTooltip(e, "Delete Row");
            }
            else
            {
                this.ultraToolTipManager1.HideToolTip();
            }
        }

private void grdItemization_MouseLeaveElement(object sender, UIElementEventArgs e)
        {
            this.ultraToolTipManager1.HideToolTip();
        }