yes it is out of scope. a way round this (may not be totally 
desirable) as follows

<mx:DataGridColumn headerText="Type" dataField="col3">
 <mx:itemRenderer>
  <mx:Component>
   <mx:ComboBox creationComplete="doThis()">
     <mx:Script><![CDATA[
      
        private function doThis():void
        {
           // need to go up the owner/parent chain until 
           // you get access to colEvalType and set this.dataProvider
           
           
        }
      ]]></mx:Script>
   </mx:ComboBox>
  </mx:Component>
 </mx:itemRenderer>
 </mx:DataGridColumn>

--- In flexcoders@yahoogroups.com, "Barry Beattie" 
<[EMAIL PROTECTED]> wrote:
>
> thankfully, Brendan Meutzner example helps nicely
> 
> http://www.visualconcepts.ca/blog/index.cfm/2006/6/22/ComoboBox-
RendererEditor-for-20
> 
> 
> although  doing something like this (closer to what I'm after)
> 
>                       <mx:DataGridColumn headerText="Type" 
dataField="col3">
>                               <mx:itemRenderer>
>                                       <mx:Component>
>                                               <mx:ComboBox 
dataProvider="{colEvalType}"></mx:ComboBox>
>                                       </mx:Component>
>                               </mx:itemRenderer>
>                               
>                       </mx:DataGridColumn>
> 
> I get "Access of undefined property colEvalType" which I think is a
> scope thing since further down the mxml file it works fine
> <mx:ComboBox dataProvider="{colEvalType}" y="240"></mx:ComboBox>
> 
> should this work?
> 
> thanx
> barry.b
>







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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to