3 Replies Latest reply on Jan 29, 2011 10:06 AM by saisri2k2

    Call to a possibly undefined method for Custom Itemrenderer Component

    kiran7881 Level 1

      HI all ,

       

      <mx:Application >

       

      <mx:Script>
            <![CDATA[
               
                public function calMe():void
                {
                   
                }
       
            ]]>
        </mx:Script>
       
      <mx:Panel x="0" y="0" width="530" height="405" layout="absolute"
          title="Item Renderers">
         <mx:DataGrid x="0" y="0" width="510" height="365">
           <mx:columns>

       

             <mx:DataGridColumn headerText="Song" width="50">
      <mx:itemRenderer>
         <mx:Component>
           <mx:VBox verticalGap="10">
             <mx:Label text="Ravi" />
             <mx:Button label="Edit" click="calMe()"/>
              </mx:VBox>
         </mx:Component>
      </mx:itemRenderer>
      </mx:DataGridColumn>

       

              </mx:columns>
           <mx:dataProvider>
           
           </mx:dataProvider>
         </mx:DataGrid>
      </mx:Panel>
      </mx:Application>

       

      why , I am getting this Call to a possibly undefined method calMe, how to resolve this ??