If you do not update the checkbox value in the dataProvider and set the state it in setValue, then when you scroll, the check state will be lost.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of Stacey Mulcahy
Sent: Thursday, January 26, 2006 2:10 PM
To: [email protected]
Subject: RE: [flexcoders] access DataGrid Row

 

Hm I ‘m not sure about directly addressing the cell, then, because I’d think that the cell that is rendering the dataObject should be rendering in relation to the object passed in. I mean unless they are all bound to one property held outside the dataprovider.

 

You can go

My_dg.dataProvider.refresh();

 

Or even use a collection and the do a notifyUpdate – but I haven’t used that too much.

 

 

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of superabe superabe
Sent: Thursday, January 26, 2006 2:04 PM
To: [email protected]
Subject: Re: [flexcoders] access DataGrid Row

 

Thanks for the reply Stacey.

 

I dont have the state of the checkBox in my dataProvider right now. If I do manage to stick it in there, what is this refresh method that you are referring to ?



 

On 1/26/06, Stacey Mulcahy <[EMAIL PROTECTED]> wrote:

Technically if you go to the model, change the data in there ( the dataprovider), call a refresh, you can handle that in your cell renderer.

 

You should also be able to get at it something like columnIndex,itemIndex – like for focusedcell

 


From: [email protected] [mailto:[email protected]] On Behalf Of superabe superabe
Sent: Thursday, January 26, 2006 12:55 PM
To: [email protected]
Subject: [flexcoders] access DataGrid Row

 

I have a question that seems like it should be a basic one.

I have a DataGrid and I need to go over its currently visible rows and deselect a check box in one of the cellrenderers based on a condition.

 

Is there some property on the datagrid that can be used access the rows and then the cell renderer in it

for e.g

 

like my_dg.rows[i].cell[0] ?

 

TIA
 

- superabe




--
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

Web site design development

Computer software development

Software design and development

Macromedia flex

Software development best practice

 

 


YAHOO! GROUPS LINKS

 

 







--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to