is there a way to have a mousehover event for ultralistview element? not the entier thing!
i am trying to use the hover for each subitem so i can display my tooltip for each one (my tooltip)
the problem is that after the first time i enter and stop somewhere it just doesn't activate the event until i get out and get back. (of the entire list that is)
Hello Meir,
Maybe one possible approach to solve this task, could be if you are using UltraTooltipManager and both events MouseEnterElements and MouseLeaveElements. By this way you could show your custom tooltip on MouseEnterElement and hide the tooltip on MouseLeaveElement.
More details about UltraTooltipManager, you could find on http://help.infragistics.com/Help/Doc/WinForms/2013.2/CLR4.0/html/WinTooltipManager.html
Let me know if you have any questions.
i actually already succedded partialy already
i added ToolTipDisplaying event to override the original tool tip and set the tipstyle of both the items (inside itemsSettings) and subitems. the problem is that even though they are both set to showalways i still don't get the event for the original item (main column) only for the sub items.
private void ultraListView_ToolTipDisplaying(object sender, Infragistics.Win.UltraWinListView.ToolTipDisplayingEventArgs e) { // Override the default tooltip behavior for folder items, // so we can display a summary of the contents of the folder // when the end user hovers over the item. e.Cancel = true; if (e.IsToolTipForSubItem == false) { if (e.Item.SubItems[0].Appearance.ForeColor.Equals(LIST_FORE_COLOR_DISABLED) == true) { return; } } SetListToolTip(e.SubItem, new Point(e.Location.X, e.Location.Y + LIST_IMAGE_SIZE.Height)); }
any idead why don't i get the message for the main column?
If I understand well your issue looking on your code, you are not able to get message for the main column, because in SetListToolTip method you are using wrong parameter - e.SubItem. If you want to get the message from Main column, you should use e.Item instead of e.SubItem. Maybe you could modify your code:
private void ultraListView1_ToolTipDisplaying(object sender, ToolTipDisplayingEventArgs e)
{
// Override the default tooltip behavior for folder items,
// so we can display a summary of the contents of the folder
// when the end user hovers over the item.
e.Cancel = true;
if (!e.IsToolTipForSubItem)
if (e.Item.SubItems[0].Appearance.ForeColor.Equals(LIST_FORE_COLOR_DISABLED) == true)
return;
}
SetListToolTip(e.SubItem, new Point(e.Location.X, e.Location.Y + LIST_IMAGE_SIZE.Height));
else
SetListToolTip(e.Item, new Point(e.Location.X, e.Location.Y + LIST_IMAGE_SIZE.Height));
The product lifecycle of your version 10.3 is expired. More details you could find http://ko.infragistics.com/help/product-lifecycle/ . Please upgrade to one of latest and supported versions where this issue doesn`t exist.
Let me know if you have any questions
i have the 10.3 version
In my sample where I used our latest version, I think that the method works properly. Could you please tell me what is your current version and do you have any installed service release and which exactly. Please upload small sample that reproduce your issue and I`ll be glad to research it for you.
the problem is not how to create the tooltip
the problem is the method isn't called for a non sub item... there for isforsubitem is always being recieved as true, as it should but why isn't it called for the non sub item? ideas? a flag of somekind i keep missing maybe?
as i wrote in my earlier post
Sample