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(); }
Thank you, my solution here.
I was able to recreate and fix the issue. It would occur after the ToolTip was displayed and then the mouse left the grid. Then when the mouse reentered the grid (specifically the column headers) the last displayed ToolTip would reappear. I was able to prevent this behavior by setting UltraToolTipManager.Enabled = False in the MouseLeaveElement event and then setting it back to True in the MouseEnterElement event.
If your issue can be duplicated in a small sample project, please post it here and we would be happy to take a look at it.
I am having the same issue with tooltips appearing at random positions on my form. I am using the UltraToolTipManager with the MouseEnterElement and MouseLeaveElement events just as above. I was able to recreate the issue with a breakpoint in my MouseEnterElement event and it never entered the method. I'm baffled.
I am having a similar issue with custom tooltips being added to the ultragrid column headers. The tooltips are supposed to appear simply when hovering the column captions, but sometimes the tooltip appears out of context in the grid outside of the column headers completely.
Additionally, I have an issue where the tooltips from the grid and from the infragistics toolbar buttons are not clearing when launching a dialog when the toolbar button is clicked. Has anyone seen this behavior before and if so, how did was it resolved? Thanks.