flex: cant edit item in Datagrid with override set data method

1.1k Views Asked by At

I've a custom itemRenderer for my datagrid. To set the actual data I use the following method:

override public function set data(side:Object):void{
   ...
}

As soon as I use this function the cell doesn't show up any item Editor anymore. Why is that? When I remove this function the itemEditor is working but with the wrong initialization data...

What's the proper way to handle this?

Thanks, Markus

2

There are 2 best solutions below

1
On BEST ANSWER

Have u called 'Super' on that method ?

1
On

Make sure that you also have an itemEditor that is correctly working or that you set the rendererIsEditor property to true and use the renderer as the editor.