The cellRenderer there is a class reference, not the instance of the class.  I’m not sure we expose the reference to the cell renderer instances for you, why do you need access to an individual renderer from the outside?

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of sanjayd
Sent: Wednesday, July 20, 2005 11:47 AM
To: [email protected]
Subject: [flexcoders] cellRenderer question

 

Hi.

I have a public method inside a cellRenderer and I want to call the
method from the mxml file that holds the grid.

So, my cellRenderer has code like this:

<mx:Script>

        <![CDATA[
    
       public function test1() {
           mx.controls.Alert.show("got here" , "TestCellRenderer");
       }
        ]]>
</mx:Script>


and, I call the method like this, from inside the mxml file that holds
the grid:

      function callTest1InCellRenderer() {
        var clObject:Object = myDataGrid.getColumnAt(3).cellRenderer;
        clObject.test1();
      }

BUT, this does not work..any suggestions ?

Thanks in advance. Sanjay





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