--- In [email protected], "djbrown_rotonews" <[EMAIL PROTECTED]> wrote: > > I'm trying to get the itemFunction property of a DataGrid to work. I > set it up correctly, but the function never seems to get called even > when the dataProvider's data is refreshed (I'm using > XMLListCollection as the dataProvider). > > iconField and iconFunction are listed in the API for DataGridBase, > but not specifically in DataGrid. > > <mx:DataGrid iconFunction="myIcon" dataProvider="{delays_xml}" > </mx:DataGrid> > > // display the icon if the item is in acceptedProblems > private function myIcon(item:Object):Class{ > if (item==null) > return null; > if (acceptedProblems.contains(item)) { > return iconSymbol_okay; > } > return null; > } > > This function doesn't even get called expect during the > initialization of the application as it runs through all the > contained GUI components. >
------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

