You can draw in a background gradient by copying code from DataGrid, but
I would put a different kind of border around it.  It really depends on
what you want it to look like.  Canvas gives you lots of flexibility.

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen
Sent: Thursday, March 08, 2007 8:56 AM
To: [email protected]
Subject: Re: [flexcomponents] Extending Datagrid Headers

 

curious, what is a good approach to making this label appear the same as
the DG header?

DK

On 07 Mar 2007 09:33:10 -0800, Alex Harui < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

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]>  [mailto:flexcompone
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] On Behalf Of Alberto
Albericio
Sent: Wednesday, March 07, 2007 4:14 AM
To: [email protected]
<mailto:[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




-- 
Douglas Knudsen
http://www.cubicleman.com <http://www.cubicleman.com> 
this is my signature, like it? 

 

Reply via email to