I don't think I'd extend DG for that.  I'd just stretch a label over the
columns.  You can listen for events from the DG to keep 'extendedHeader'
in sync.

 

<canvas>

            <canvas  id="extendedHeader" backgroundColor="#ffffff" >

                        <label text="Personal Data">

            </canvas>

            <datagrid id="dg">

</canvas>

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio
Sent: Wednesday, March 07, 2007 4:14 AM
To: [email protected]
Subject: [flexcomponents] Extending Datagrid Headers

 

Hi all,

I need to extend the Datagrid control in order to draw an extra header 
that "lables" groups of columns. This extra header does not need to be 
functional but only informative.

I wanted to ask you, guys, what is the best approach to achieve this?

I would also like to specify the groups by setting some kind of 
parameter of the new datagrid component. In the example ( jpg ) 
attached, it would be something like this:

<custom:exDatagrig
groups="[ { columns: [ age, money ], label: 'Personal data' } ]"
...
/>

Thank you all.

Alberto

 

Reply via email to