The renderers need a way to access a variable outside the DG that
represents the checkbox state.  You could put it in your data model.

 

You'll have to call invalidateList() to refresh DG.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of rviswanathan
Sent: Friday, May 30, 2008 12:45 PM
To: [email protected]
Subject: [flexcoders] select datagrid column cells based on checkbox
click

 


Hi 

I have a datagrid and a checkbox outside of it. When I click the
checkbox, I
need a specific set of cells (not complete rows) on only one of the
columns
to be highlighted (with some background color).

How can I go about doing this? 

This is what I attempted. 
a) I have an itemRenderer associated with this column. 
b) WHen I select the checkbox, how will this itemrenderer actually get
invoked? Do I have to do a refresh or do anything with the data
provider?
(The checkbox is a separate control outside the grid, both these are in
the
same mxml)
c) Even if the itemrenderer gets invoked, I have no idea of what the
selected state of the checkbox is (cos I need to restore the original
color
when the checkbox is unchecked).

Can you please advice? 

Thanks
Ram
-- 
View this message in context:
http://www.nabble.com/select-datagrid-column-cells-based-on-checkbox-cli
ck-tp17566694p17566694.html
<http://www.nabble.com/select-datagrid-column-cells-based-on-checkbox-cl
ick-tp17566694p17566694.html> 
Sent from the FlexCoders mailing list archive at Nabble.com.

 

Reply via email to