PDA

View Full Version : Suggestion on grid component


wGrand
06-24-2009, 11:06 PM
I am trying to imitate the interface in the section labeled "HARDWARE" in Flex (Flex 4, "Gumbo" to be specific):

http://turningtemplates.com/setupgrid.aspx (http://turningtemplates.com/setupgrid.aspx)

I have used Flex before, but I am a noob when it comes to datagrids, etc.

Each row contains a delete button. The user can also add new rows. It would be nice to drag-n-drop rows too. I've tried working with drag-n-drop in Flex before, but found it to be a nightmare.

Can anyone point me in the right direction?
What component from the Flex library would you suggest?
How would I add a delete button?

Thanks!

- William

sydd_hu
06-27-2009, 09:41 PM
If you're trying to do this in Gumbo i'd suggest to use a DataGroup with virtualLayout and a custom itemrenderer.
It sounds scary, but it not so hard to implement+you can extend you component easilly.
heres an example:
http://livedocs.adobe.com/flex/gumbo/html/WS486D1976-E12C-4654-B330-3DF3B23614F6.html

Tour de Flex has a nice example too