Alright, you've convinced me. :) I subclassed AdvancedDataGridItemRenderer, and made toolTipShowHandler a blank method. I hadn't realized that they'd so specifically implemented that behavior.
Now two more issues have come up. 1) Word-wrap works as one used to web browsers and various OSs would expect, except when there's a very long word. Flex cuts the word in the middle, and splits it across lines. I would prefer it if the table grew a horizontal scrollbar in this case, like tables in HTML. Is there any easy way to do this? 1) There's a lot more horizontal space than there used to be between the previous column and the column with its new itemRenderer. I know that some controls have a "horizontalGap" attribute which can be used to fix this problem, but that attribute isn't available on AdvancedDataGridColumn. How would I emulate the behavior of that attribute? Thanks for your help! --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Wordwrapping is the responsibility of the renderer. Label is a > single-line control so it won't word wrap. Using Text is possible but > you have to wire up the measure method correctly. See past threads for > how to do that. Also, that makes a heavy weight renderer. > > > > My recommendation is to copy DataGridItemRenderer and remove the datatip > code. > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of whatabrain > Sent: Tuesday, August 12, 2008 3:55 PM > To: [email protected] > Subject: [flexcoders] My itemRenderer is cancelling wordWrap setting on > AdvancedDataGridColumn > > > > I want an AdvancedDataGridColumn to have word wrap, soI set the > wordWrap attribute to true. The column contains an itemRenderer, which > renders an mx:Label, which contains the actual text. But that text > doesn't wrap. > > <mx:AdvancedDataGridColumn wordWrap="true"> > <mx:itemRenderer> > <mx:Component> > <mx:Label text="I am an unhappy table cell"/> > </mx:Component> > </mx:itemRenderer> > </mx:AdvancedDataGridColumn> > > The reason I'm using an itemRenderer is because otherwise, tooltips > don't work properly. They are always drawn within the cell, instead of > appearing at the corner of the mouse cursor like they should. Putting > the tooltip on the Label fixes the problem. >

