I have a column that displays an image based on a column value, boolean in this case. I'm using the ValueList example from here (http://forums.infragistics.com/forums/p/17549/63624.aspx#63624) and it works very well (thanks).
However, if the mouse cursor is moved over the cell, it expands as if it's displaying the underlying text.
Is there a way to suppress this behavior?
Thanks,
JL
Hi JL,
I tried this out with the sample code and I don't get any tooltip over the image column. Perhaps this is a bug that has already been fixed. Are you using the latest service release?
If you are, and you are still getting the tooltip, then the only way to turn it off would be via a CreationFilter. At least - that's that only way to just turn it off for a single column. You can use the TipStyleCell property on the Override to turn off tooltip for the band or the entire grid.
Thanks Mike,
I'm downloading the service release now and will try that. One thing about your test, though, did you resize the column to be smaller than the width of the widest text value? I'm wondering if that will change your results. My column is set to only 20 pixels wide.
Jim
Yes, I made the column as small as possible to get it to show a tooltip, but it still did not display.
Must be another setting somewhere that is making this behave differently. I loaded the latest patch and that didn't make a difference
I ended up using the CreationFilter as you suggested and it seems to work well.
Basically, in the filter, I use the AfterCreateChildElements method and test for parent equal to CellUIElement. If true, I look at the key of the CellUIElement.Column, and if it's the one I'm using for the image, I set the Parent.ToolTipItem to Null.
Does that sound like the proper way to handle this? I'm concerned about performance.
Thanks.
jlitzie said:Must be another setting somewhere that is making this behave differently. I loaded the latest patch and that didn't make a difference
Hm, I wonder why it's working for me and not for you.
jlitzie said: I ended up using the CreationFilter as you suggested and it seems to work well. Basically, in the filter, I use the AfterCreateChildElements method and test for parent equal to CellUIElement. If true, I look at the key of the CellUIElement.Column, and if it's the one I'm using for the image, I set the Parent.ToolTipItem to Null. Does that sound like the proper way to handle this? I'm concerned about performance.
That sounds like exactly the right way to do it.I don't see anything in your description that would cause a performance problem. Butif you want to post your CreationFilter code, I'd be happy to look it over and see if I can spot any ways to improve the performance.
Cool.
Thanks again.
Hi Jim,
Looks fine and very efficient to me.
Mike,
This seems to be working well. Below is my code; don't be alarmed by the syntax. Our development environment is Progress Software who just recently created an SDK for .NET development and has also partnered with Infragistics. Our syntax is different, but the end result is the same...
Thanks again for the help!
CLASS Filters.NoGridCellTooltip IMPLEMENTS IUIElementCreationFilter : DEFINE VARIABLE cColumnKeyList AS CHARACTER NO-UNDO. CONSTRUCTOR PUBLIC NoGridCellTooltip ( INPUT cKeyList AS CHARACTER ): SUPER (). cColumnKeyList = cKeyList. END CONSTRUCTOR. METHOD PUBLIC LOGICAL BeforeCreateChildElements ( INPUT parent AS Infragistics.Win.UIElement ): DEFINE VARIABLE result AS LOGICAL NO-UNDO. RETURN result. END METHOD. /* BeforeCreateChildElements */ METHOD PUBLIC VOID AfterCreateChildElements ( INPUT parent AS Infragistics.Win.UIElement ): IF Type-Of(Parent,Infragistics.Win.UltraWinGrid.CellUIElement) THEN DO: IF LOOKUP(CAST(Parent,Infragistics.Win.UltraWinGrid.CellUIElement):Column:Key,cColumnKeyList) NE 0 THEN Parent:ToolTipItem = ?. END. RETURN. END METHOD. /* AfterCreateChildElements */ END CLASS.