[flexcoders] Re: toolTip for dataGrid headers?

2006-06-22 Thread djbrown_rotonews
That did the trick, nearly. My header text, that used to span two rows, now only has the first row displayed and omits the remainder of the header. I have headerWordWrap set to true, but there must be something else I have to do. any help? --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL

[flexcoders] Re: toolTip for dataGrid headers?

2006-06-22 Thread Tim Hoff
Even though you set headerWordWrap to true, when a headerRenderer is used those properties are repaced when the renderer is created. Keep in mind, the default item renderer is a Text field. In the HeaderRenderer AS, change the Height (maybe to 40) and the header text should wrap. You might

[flexcoders] Re: toolTip for dataGrid headers?

2006-06-22 Thread Tim Hoff
Like this: public function HeaderRenderer() { height = 34; } -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Even though you set headerWordWrap to true, when a headerRenderer is used those properties are repaced when the renderer is created. Keep in mind, the

[flexcoders] Re: toolTip for dataGrid headers?

2006-06-22 Thread djbrown_rotonews
That did the trick. Still some minor issues when sorting columns (the arrow ends up messing up the alignment of the header text), but this gets me most of the way there. thanks --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Like this: public function

[flexcoders] Re: toolTip for dataGrid headers?

2006-06-21 Thread djbrown_rotonews
I've seen references to using the setValue() function of the custom renderer to gain access to the header itself and putting the toolTip code in there, but it doesn't look like setValue is called any longer using Beta3. any ideas/suggestions? --- In flexcoders@yahoogroups.com, djbrown_rotonews

[flexcoders] Re: toolTip for dataGrid headers?

2006-06-21 Thread Tim Hoff
DJ, I included a hack for this in the following example. Since the column's headeRenderer is a dataGridItemRenderer (TextField), it has a toolTip property. The headerText is set before the itemRenderer is created, so you can compare to data.text to identify the column.

[flexcoders] Re: toolTip for dataGrid headers?

2006-06-20 Thread djbrown_rotonews
I'm discovered that I need to implement my own headerRenderer as part of each DataGridColumn, but how do I go about accessing what column I'm currently looking at. I'm wanting to add a generic headerRenderer for all 22 columns of my DataGrid, displaying a tool tip based on the id of the