horizontal list and advanced data grid flex

235 views Asked by At

I am trying to use advanced datagrid inside a horizontal list in flex. But I am not able to specify a correct item renderer for it to work. First of all is it even possible to do so? I am getting just a blank table if I use mx.controls.AdvancedDataGrid as renderer.

1

There are 1 answers

0
CodeMonkey On

Did you try something like this?

<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
            xmlns:s="library://ns.adobe.com/flex/spark" 
            xmlns:mx="library://ns.adobe.com/flex/mx">

<fx:Script>
    <![CDATA[
        override public function set data(value:Object) : void {
            if(value) {
                dg.dataProvider = value;
            }
        }
    ]]>
</fx:Script>
<mx:AdvancedDataGrid id="dg"/>
</s:ItemRenderer>