i am facing problem. currently i am using mouseenterelement event for display formatted tooltip for current row. it is working but it is not working for row by row mouse movement. once i move mouse from grid and again place in row it is working. but my requirement is within grid if i move mouse row by row it should show current row value in tooltip.
thanks in advance
Hello Gurumurthy,
I’m glad that you managed to resolve your issue.
Thank you for choosing Infragistics!
Regards,Ivan Kitanov
Hi ivan,
Its working thanks....
The UltraToolTip manager accepts controls, so when you are displaying the tooltip for a specific row the tooltip manager interprets it as displaying the tooltip for the whole grid and even though the MouseEnterElement is changing the tooltip for the row, the tooltip is only present once you leave the grid and enter it again. I suggest adding the line below in the MouseEnterElement event after setting the text of the tipinfo for the row:
this.ultraToolTipManager1.ShowToolTip(this.ultraGrid1);
The ShowToolTip method will display the tooltip once the user has hovered a row.
If this is not an accurate demonstration of what you are trying to achieve please feel free to provide your own sample. Remove any external dependencies and code that is not directly related to the issue, zip your application and attach it.
Having a working sample on my side, which I can debug, is going to be very helpful in resolving the issue.
Please let me know if you need further assistance.
Hi Ivan,
actually i am using
UltraToolTipInfo tipInfo = new UltraToolTipInfo(); tipInfo.ToolTipTextStyle = ToolTipTextStyle.Formatted;
in order to achieve both image and text in tooltip so i dont have idea to in InitializeRow event.
In order to show tooltip for each row you can use the InitializeRow event, this event provides an opportunity to perform actions on the row after it is created. You can set the tooltip to show the current row index like that:
e.Row.ToolTipText = string.Format("Row Index {0}", e.Row.Index);
Attached you will find a sample application, which demonstrates showing the tooltip for each row using the InitializeRow event.
Regards, Ivan Kitanov
ShowingRowToolTip.zip