Hi David, It looks like your DataGridItemRenderer is do same thing as the default one, what's the point of creating this one ? Are you going to expand it's functionality ?
Thanks, Piotr wt., 23 mar 2021 o 08:31 David Slotemaker de Bruine < [email protected]> napisaĆ(a): > Hi All, > > I would like to create a generic Datagrid renderer for some of my VOs. I > have followed the example for TDJ but it's not going me any output or error > message. My code is the following: > <?xml version="1.0" encoding="utf-8"?> > <j:DataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:j="library://ns.apache.org/royale/jewel" > xmlns:js="library://ns.apache.org/royale/basic" > > > <fx:Script> > <![CDATA[ > [Bindable("dataChange")] > public function get stringValue():String > { > return data[dataField] as String; > } > > ]]> > </fx:Script> > <j:beads> > <j:HorizontalCenteredLayout/> > <js:ItemRendererDataBinding /> > </j:beads> > <j:Label text="{stringValue}"/> > </j:DataGridItemRenderer> > > Is it because I am using "data[dataField]"? If so what is the best way to > do this without having t create a specific Renderer for each column. > > Cheers, > > David > -- Piotr Zarzycki
