[flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread subeesh a
Hi All,

Can anyone help me with this 

If i place chek boxes in datagrid column by inline item renderer how can il put 
al the items in the datagrid in wich the check boxes are ticked to an array.

Thanks 

Subeesh



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

RE: [flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread Tracy Spratt
When the user clicks a checkbox in the itemRenderer, the renderer must update a 
selected property on the dataProvider item with the value of the checkbox 
selected property.  This is required.  Editable renderers must be driven from 
the dataProvider.

 

Then, you can loop through the dataProvider, test for the value of the selected 
property, then put the data into the array.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of subeesh 
a
Sent: Monday, March 19, 2007 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox in Datagrid to Select Items

 

Hi All,

 

Can anyone help me with this 

 

If i place chek boxes in datagrid column by inline item renderer how can il put 
al the items in the datagrid in wich the check boxes are ticked to an array.

 

Thanks 

 

Subeesh 

 



Here’s a new way to find what you're looking for - Yahoo! Answers 
http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/  

 



RE: [flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread Alex Harui
FWIW, by writing even more code, you can avoid the looping.  You'd have to have 
a known central registry that customized checkboxes notify when clicked.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy 
Spratt
Sent: Monday, March 19, 2007 10:58 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Checkbox in Datagrid to Select Items

 

When the user clicks a checkbox in the itemRenderer, the renderer must update a 
selected property on the dataProvider item with the value of the checkbox 
selected property.  This is required.  Editable renderers must be driven from 
the dataProvider.

 

Then, you can loop through the dataProvider, test for the value of the selected 
property, then put the data into the array.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of subeesh 
a
Sent: Monday, March 19, 2007 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox in Datagrid to Select Items

 

Hi All,

 

Can anyone help me with this 

 

If i place chek boxes in datagrid column by inline item renderer how can il put 
al the items in the datagrid in wich the check boxes are ticked to an array.

 

Thanks 

 

Subeesh 

 



Here’s a new way to find what you're looking for - Yahoo! Answers 
http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/  

 



Re: [flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread subeesh a
Thanks Tracy,

That was a great help. Can u please explain in detail in how can i update the 
dataprovider

Subeesh


- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 19 March, 2007 10:29:16 PM
Subject: RE: [flexcoders] Checkbox in Datagrid to Select Items

When the user clicks a checkbox in the itemRenderer, the renderer must update a 
“selected” property on the dataProvider item with the value of the checkbox 
selected property.  This is required.  Editable renderers must be driven from 
the dataProvider.
 
Then, you can loop through the dataProvider, test for the value of the selected 
property, then put the data into the array.
 
Tracy
 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of subeesh a
Sent: Monday, March 19, 2007 11:06 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Checkbox in Datagrid to Select Items
 
Hi All,
 
Can anyone help me with this 
 
If i place chek boxes in datagrid column by inline item renderer how can il put 
al the items in the datagrid in wich the check boxes are ticked to an array.
 
Thanks 
 
Subeesh 
 



Here’s a new way to find what you're looking for - Yahoo! Answers 




__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

RE: [flexcoders] Checkbox in Datagrid to Select Items

2007-03-19 Thread Tracy Spratt
For an inline data provider it will be something like [EMAIL PROTECTED] =
this.selected.  Not sure about the this, you may need to use the id of
the checkbox, I don't do many in-line renderers.  

 

Here is an example of a checkbox renderer implemented in mxml:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI
D=559

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of subeesh a
Sent: Monday, March 19, 2007 12:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Checkbox in Datagrid to Select Items

 

Thanks Tracy,

 

That was a great help. Can u please explain in detail in how can i
update the dataprovider

 

Subeesh

- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, 19 March, 2007 10:29:16 PM
Subject: RE: [flexcoders] Checkbox in Datagrid to Select Items

When the user clicks a checkbox in the itemRenderer, the renderer must
update a selected property on the dataProvider item with the value of
the checkbox selected property.  This is required.  Editable renderers
must be driven from the dataProvider.

 

Then, you can loop through the dataProvider, test for the value of the
selected property, then put the data into the array.

 

Tracy

 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]
On Behalf Of subeesh a
Sent: Monday, March 19, 2007 11:06 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Checkbox in Datagrid to Select Items

 

Hi All,

 

Can anyone help me with this 

 

If i place chek boxes in datagrid column by inline item renderer how can
il put al the items in the datagrid in wich the check boxes are ticked
to an array.

 

Thanks 

 

Subeesh 

 



Here's a new way to find what you're looking for - Yahoo! Answers
http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/  

 

 



Here's a new way to find what you're looking for - Yahoo! Answers
http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/