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
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
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
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
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
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.
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
7 matches
Mail list logo