Question –

 

Flex 2

Cell Renderer

 

I have a cell renderer that overrides the set dataObject to determine what to render based on the info.

Originally I was setting a plain ole array to the dataGrid as a DP and I could easily do something like

 

   Override public function set dataObject(value:Object){

             if(value!=null){

     if(value[prop]!=null){

    // then show this image

      }else{

    // show this image

}

       }

}

 

 

Now I know using a plain array isnt’ the way to go. So I want to use an array collection or something of that sort. When I set the dp of the datagrid to an ArrayCollection – I can no longer access the prop on the object in the override, even tho, when I trace the object out, the properties and value pairs are all there.

 

General thoughts- I know its something stupidly simple (hence the subject line) but hell, who needs an ego anyways J

 

 



--
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




Reply via email to