Grid though is usually frowned upon eh?  I've used it before in Flex 1.5 to
display tabular data that i couldn't get the datagrid to handle.  You can
sit back and watch the redraw when your dataprovider changes, sucky.  I've
since moved it to datagrid and its much smoother.

DK

On 3/9/07, Alex Harui <[EMAIL PROTECTED]> wrote:

   Stuff like that is being considered for the next release.  If you want
HTML Table, you should check out mx.containers.Grid.  It doesn't do
data-driven rows though, but you can do things with repeater, depending on
how many rows you have.



There are some advanced datagrids available on these forums as well.


 ------------------------------

*From:* [email protected] [mailto:flexcompone
[EMAIL PROTECTED] *On Behalf Of *Alberto Albericio
*Sent:* Friday, March 09, 2007 1:14 AM
*To:* [email protected]
*Subject:* Re: [flexcomponents] Extending Datagrid Headers



For me, a a good ( solid, loosly coupled ) approach would be something
like this ( in the example of my first mail ):

<mx:Datagrid

<mx:headers>
<mx:DatagridRow>
<mx:DatagridColumnGroup columns="2" />
<mx:DatagridColumnGroup columns="2" label="Personal data"
backgroundColor="#FFFFFF" sortable="false" click="..." />
</mx:DatagridRow>
<mx:DatagridRow>
<mx:DatagridColumnGroup columns="1" label="name"
sortable="true" ... />
<mx:DatagridColumnGroup columns="1" label="value"
sortable="true" ... />
<mx:DatagridColumnGroup columns="1" label="age"
sortable="true" ... />
<mx:DatagridColumnGroup columns="1" label="money"
sortable="true" ... />
</mx:DatagridRow>
...
</mx:headers>

<mx:columns>
....
</mx:columns>
</mx:Datagrid>

So the idea is to separate the definition of the headers from the
columns and tie columns with headers so that you can stretch them
together etc

Thats a first idea.... sounds like an html table? mmmmm

Alberto

Alex Harui escribió:
>
> 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]<flexcomponents%40yahoogroups.com>
> [mailto:[email protected]<flexcomponents%40yahoogroups.com>]
*On Behalf Of *Douglas Knudsen
> *Sent:* Thursday, March 08, 2007 8:56 AM
> *To:* [email protected] <flexcomponents%40yahoogroups.com>
> *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]<aharui%40adobe.com>
> <mailto:[EMAIL PROTECTED] <aharui%40adobe.com>>> 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]<flexcomponents%40yahoogroups.com>
> <mailto:[email protected]<flexcomponents%40yahoogroups.com>>
[mailto:flexcompone
> <mailto:flexcompone> [EMAIL PROTECTED] <nts%40yahoogroups.com><mailto:
[EMAIL PROTECTED] <nts%40yahoogroups.com>>]
> *On Behalf Of *Alberto Albericio
> *Sent:* Wednesday, March 07, 2007 4:14 AM
> *To:* [email protected] <flexcomponents%40yahoogroups.com>
> <mailto:[email protected]<flexcomponents%40yahoogroups.com>
>
> *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?
>
>




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

Reply via email to