[flexcoders] A Weird DataGrid

2008-02-26 Thread jiggy

Hi, folks,

I am trying to do something weird with datagrid, which will be described a
bit later. Please let me have your insights about if it is the right
direction or not.

I would like to have a table about 30 rows by 19 columns, which will present
information about cars. Each column represents an attribute (e.g., mpg,
acceleration, price) of various cars, and each row (kind of) represent a car
(e.g., civic, camry, accord, etc.). One thing strange about this table is
that, all columns are sorted. It is different from the multi-sorting feature
of AdvancedGrid. Let me show you an example.

Cars|  MPG  |  Price
Accord | 10 mpg (of Civic)  | $1 (of Camry)
Civic| 20 mpg (of Accord)   | $2 (of Civic)
Camry  | 30 mpg (of Camry)| $3 (of Accord)

Since all the columns (i.e., Cars, MPG, Price) are sorted, the rows are
messed up. The first row contains the information about Accord, the MPG of
Civic, and the price of Camry. In this representation, a row doesn't
represent a specific car any more. So, what I am trying to do is when a
person move a mouse cursor on a cell of Accord, all the cells related with
Accord will be highlighted. In this way, a user will find out which cell
belongs to Accord through highlights even though rows are messed up.

While implementing this, I found that the underlying data structure does not
seem to be well matched with this user interface. Each row is treated as the
same element of a collection. Drawing is done line by line. However, as you
can see, a row in this strange datagrid represents attributes of different
elements. Due to this, highlights cannot be drawn line by line. It will
highlights all over the places.

What do you think? Should I build one from scratch? Or, using DataGrid will
be fine for this?

Regards,
Ji Soo Yi
-- 
View this message in context: 
http://www.nabble.com/A-Weird-DataGrid-tp15701811p15701811.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] A Weird DataGrid

2008-02-26 Thread Maciek Sakrejda
I think you're better off with a custom component (perhaps implemented
as an HBox of List controls). A DataGrid does indeed intend to show
*rows* of data. You'll be fighting the component's basic design idea the
whole way if you start with a DataGrid.

You should also consider the user interface impact of such a component:
it's an intriguing approach to the problem and it could certainly work,
but it's easy to create a usability train wreck when getting too
adventurous in UI design. Make sure to test it with real users as much
as possible.


-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: jiggy [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] A Weird DataGrid
Date: Tue, 26 Feb 2008 14:48:50 -0800 (PST)


Hi, folks,

I am trying to do something weird with datagrid, which will be described
a
bit later. Please let me have your insights about if it is the right
direction or not.

I would like to have a table about 30 rows by 19 columns, which will
present
information about cars. Each column represents an attribute (e.g., mpg,
acceleration, price) of various cars, and each row (kind of) represent a
car
(e.g., civic, camry, accord, etc.). One thing strange about this table
is
that, all columns are sorted. It is different from the multi-sorting
feature
of AdvancedGrid. Let me show you an example.

Cars | MPG | Price
Accord | 10 mpg (of Civic) | $1 (of Camry)
Civic | 20 mpg (of Accord) | $2 (of Civic)
Camry | 30 mpg (of Camry) | $3 (of Accord)

Since all the columns (i.e., Cars, MPG, Price) are sorted, the rows are
messed up. The first row contains the information about Accord, the MPG
of
Civic, and the price of Camry. In this representation, a row doesn't
represent a specific car any more. So, what I am trying to do is when a
person move a mouse cursor on a cell of Accord, all the cells related
with
Accord will be highlighted. In this way, a user will find out which cell
belongs to Accord through highlights even though rows are messed up.

While implementing this, I found that the underlying data structure does
not
seem to be well matched with this user interface. Each row is treated as
the
same element of a collection. Drawing is done line by line. However, as
you
can see, a row in this strange datagrid represents attributes of
different
elements. Due to this, highlights cannot be drawn line by line. It will
highlights all over the places.

What do you think? Should I build one from scratch? Or, using DataGrid
will
be fine for this?

Regards,
Ji Soo Yi
-- 
View this message in context:
http://www.nabble.com/A-Weird-DataGrid-tp15701811p15701811.html
Sent from the FlexCoders mailing list archive at Nabble.com.




 




[flexcoders] Re: Weird DataGrid Behavior in Release Version

2007-10-16 Thread hammer995
Sorry...

I should also add a custom effect does not work in the release version
as well but works fine in the build version.




--- In flexcoders@yahoogroups.com, hammer995 [EMAIL PROTECTED] wrote:

 So I put a release version into QA.  When I click on a datagrid, the
 presence of a selectedItem enables an edit button.  When I click on
 the edit button it doesn't work as expected.  It just blanks the
 selectedItem and disables my edit button.
 
 It does work if I wait enough or do something sometimes. 
 
 This works fine in regular build releases.
 
 The same happens in both firefox and IE.
 
 Any ideas?
 
 Thanks.