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(); }
Hi,
I've never seen this happen, not can I explain why you would get a tooltip when the mouse is in the wrong place.
You might want to check out the samples for the UltraToolTipManager. There's a sample there called ToolTips with Context which shows how to create tooltips that show up for certain parts of a grid, rather than for the whole grid. Perhaps there's something that the sample is doing that you are not.