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
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.
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.
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.
Must be another setting somewhere that is making this behave differently. I loaded the latest patch and that didn't make a difference
Thanks.