so this is what I am doing. it gives me "A term is undefined and has no properties." public function brigFiles_clickHandler(_comp:CheckBox):void { var dp:Object = datagrid.dataProvider; var cursor:IViewCursor=dp.createCursor(); while( !cursor.afterLast ) { Alert.show(cursor.current.select.toString()); cursor.moveNext(); } } <mx:DataGridColumn headerText="" dataField="select" sortable="false" editable="false" resizable="false" textAlign="center" width="20"> <mx:itemRenderer> <fx:Component> <mx:CheckBox change="outerDocument.datagrid_clickHandler(this)" /> </fx:Component> </mx:itemRenderer> </mx:DataGridColumn>
On Thu, Oct 15, 2009 at 10:15 AM, turbo_vb <timh...@aol.com> wrote: > > > > Look at the dataProvider. You're using the "select" property of the > items, so loop and look. > > > -TH > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, Agha > Mehdi <aghaime...@...> wrote: > > > > Thanks guys. how do i get the list of all checked rows from the > datagrid? > > > > On Thu, Oct 15, 2009 at 7:14 AM, Nick Middleweek n...@...wrote: > > > > > > > > > > > Ah ok... Thanks Tracy... > > > > > > Is that a bit like Application.application ? > > > > > > > > > > > > > > > 2009/10/15 Tracy Spratt tr...@... > > > > > >> > > >> > > >> An item renderer is a component and has its own scope. > "outerDocument" > > >> is a reference to the renderer's parent document. You use it to > access > > >> public properties of the parent. > > >> > > >> > > >> > > >> Tracy Spratt, > > >> > > >> Lariat Services, development services available > > >> > > > > > > > > > > > > > > > > >