this *should* be easy. In HTML it'd just be a colspan....anyhoo...
I've got a datagrid headerRenderer that should have the layout
...... Email Notifications .....
... Initial ...... | ..... Reminder
Notifications . | ......... Date
(the cells underneath will be custom itemRenderers I'm esentially
having 2 columns with a common parent header)
I just can't get the text to wrap. there's "truncate to fit" but no
wrap. any ideas?
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="150">
<mx:Label text="Email Notifications" textAlign="center"/>
<mx:HBox height="35" >
<mx:Label text="Initial Notifications" textAlign="center" />
<mx:Label text="Reminder Date" textAlign="center"/>
</mx:HBox>
</mx:VBox>
thanx
barry.b
==========================================
ALSO: I'm lost as to why I need to do this:
I can define custom components with a namespace (OK so far)
<mx:Application ...
xmlns:my="custom_controls.*"
>
<my:ComboBox dataProvider="{colRole}" y="100"></my:ComboBox>
but I can't use that namespace for a datagrid headerRenderer control.
- this works:
<mx:DataGridColumn headerRenderer="custom_controls.NewLabel" />
- this doesn't
<mx:DataGridColumn headerRenderer="my.NewLabel" />
can I ask why I can't use a namespace for all my custom stuff?
thanx
b