Hi,
Problem is that after 5 second tooltip is hidden and if i have set time 30 sec for tooltip then next ultragrid cell tooltip is not updated as per mouse move.
My Code is here:
void _Grid_MouseEnterElement(object sender, UIElementEventArgs e)
{
UltraGridCell cell = e.Element.GetContext(typeof(UltraGridCell)) as UltraGridCell;
UltraToolTipInfo utti = _toolTipManager.GetUltraToolTip(m_grid);
if (cell != null)
utti.ToolTipText = cell.Text;
}else
utti.ToolTipText = string.Empty;
}
OR
I have tried below code also;
Point prevCellPoint = Point.Empty;
void Grid_MouseMove(object sender, MouseEventArgs e)
UltraGrid grid = sender as UltraGrid;
UltraToolTipManager _toolTipManager = new UltraToolTipManager();
UltraToolTipInfo utti = _toolTipManager.GetUltraToolTip(grid);
utti.ToolTipText =
string.Empty;
Point screenpoint = Control.MousePosition;
Point clientpoint = grid.PointToClient(screenpoint);
Infragistics.Win.
UIElement uiElement = m_grid.DisplayLayout.UIElement.ElementFromPoint(clientpoint);
UltraGridCell cell = uiElement.GetContext(typeof(UltraGridCell)) as Infragistics.Win.UltraWinGrid.UltraGridCell;
if (prevCellPoint != clientpoint)
//_toolTip.SetToolTip(grid, cell.Text);
prevCellPoint = clientpoint;
else
Please suggest
Hi Priyanka,
Thank you for posting in our forums.
Can you please clarify your requirements? How long do you want the tooltips to be shown? Do you want the tooltips to appear permanently for each cell the mouse passes through? Please describe what your goal is and I will be glad to help you implement it.
I am looking forward to hearing from you.
I want the tooltips to appear permanently for each cell the mouse passes through.
So i used below code:
UltraToolTipManager _utoolTipManager =new UltraToolTipManager();
_utoolTipManager.AutoPopDelay = 0;
And it is working.
When "Content is wider than the cell then Tooltips are automatically displayed in this situation."
So my question is that "How to hide these automatically displayed tooltip for that cell?"
Please suggest earlier.