I guess what I’d do is define the columns of the DataGrid explicitly where each column is for an individual width.  Your dataProvider to the grid would then be a collection of items where each item is for a given length (you might want to lock the leftmost column and have that value be the actual length.  For all the other columns you can use a labelFunction that figures out which width the column is for, then looks up the price based on length.  Make those columns editable.  When you receive an edit event from the Grid you can simply figure out the appropriate width/length and update whatever data structure you are using.  If you wanted to build this logic into the source collections themselves that might be fine, the question is whether your data structures are going to be consistent enough to handle this or whether you might need to do some pre-processing that negates the value a DataGrid-ready data structure.

 

Not sure if I’m making sense this late at night, but it’s a shot.

 

Matt

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of lostinrecursion
Sent: Tuesday, September 19, 2006 8:52 AM
To: [email protected]
Subject: [flexcoders] Implementation of Concept: Grid

 

Hi all,

I wrote up this question a while ago but I realized, after looking at
it, that it was poorly posed. As such, it was buried among the
graveyard of unanswered posts. I think I have a much better way to
represent it:

I have a database table which holds the following fields:

width
length
pricenumber
group

The concept is that for each width and length in a given group, there
is a corresponding pricenumber value.

On the client's source documents (one for each group) this is
represented by a simple grid which has width along the X axis of the
grid and length along the Y axis. Following the width across and the
length down gives you the pricenumber you are looking for.

I need a way to represent this in Flex so that it can be edited, but I
am not sure if the DataGrid is the right approach. In HTML, this seems
like it would be fairly simple.

Could someone point me in the right direction to accomplish this task?

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to