Your itemRenderer must update a property on the dataProvider item.
Further, it must use this property to set the checkbox checked state in
set data or commitProperties.  Search the archives for renderer recycle
for more info on that.

 

Find an example of a checkbox renderer.  Alex Harui has one on his blog,
I believe, and I think there is one on www.cflex.net
<http://www.cflex.net/> .  Google will find more.

 

Getting a renderer right is a bit complicated, so don't try it from
scratch.

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexcoderman
Sent: Tuesday, June 10, 2008 4:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: item render inside grid passing param?

 

so if its a checkbox how would i reference its selected value?

would i use
httpDeleteService.request.manager =
parentDocument.testgrid.selectedItem.mycheckbox.selectedItem

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> This, "parentDocument.mygrid.ID" will return a reference to the
> DataGridColumn object. You want the value of the IDProperty on the
> dataProvider item that underlies the row/itemRenderer.
>
>
>
> You can get that through the "data" property of the renderer, or in
the
> set data() override, depending on how you have implemented the
renderer.
>
>
>
> Tracy
>
>
>
> ________________________________
>
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
]
On
> Behalf Of flexcoderman
> Sent: Tuesday, June 10, 2008 11:54 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] item render inside grid passing param?
>
>
>
>
> when using a item renderer inside a data grid in flex 3
> how do i pass a id inside the grid
>
> example i have a grid column as
>
> <mx:DataGridColumn headerText="ID" dataField="ID" id="ID" />
>
> I have a button which throws an alert box up....
>
> Alert.show(parentDocument.mygrid.ID);
>
> but doesnt actually pull the id for the grid.
>
>
> All im trying to do is pass the id to the httpservice im posting to.
>
> anyone know of good examples on the net would be great
>

 

Reply via email to