Automatically display a toolTip in an ItemRenderer when the row is visible in the DataGrid?

If the tooltip needs to be displayed all the time the image is displayed, it's not really a tooltip that you need, in that case you should just add a canvas/text field to your item renderer e. G mx:HBox id="myContainer"> 0) { myImage. Visible = true; showToolTip(); } else { myImage.

Visible = false; killToolTip(); } } else { myImage. Visible = false; } validateDisplayList(); }.

If the tooltip needs to be displayed all the time the image is displayed, it's not really a tooltip that you need, in that case you should just add a canvas/text field to your item renderer. E.g. Then set change the calls to myImage.

Visible to myContainer. Visible However, for the quick and dirty fix, you already have everything you need, just make the calls in the set data override: override public function set data(value:Object):void { super. Data = value; if (value"comments"!

= null) { if (value"comments".toString(). Length > 0) { myImage. Visible = true; showToolTip(); } else { myImage.

Visible = false; killToolTip(); } } else { myImage. Visible = false; } validateDisplayList(); }.

Thanks for the response! I'm not married to the idea of using a toolTip. If there's a better method or component out there I'm open to that.

The only issue I can potentially see with your solution is that the toolTip would get created when the data is set, but what happens when the user starts scrolling through the data grid? The rows would scroll, but the toolTip bubble would stay exactly where it was created wouldn't it? – Jason Towne Jan 11 at 23:08 I've updated my answer to include an example of the first implementation, you'll probably want to change it to display how you want it, but it should give you an idea of it.

I'm not sure without testing whether or not the tooltip would move, but I expect you're right that it wouldn't. – adamk Jan 12 at 12:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions