I think since you are using a namespace for the component you must also use it for the columns array:

<myComp:columns>

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of Jeremy Lu
Sent: Thursday, July 06, 2006 12:28 PM
To: [email protected]
Subject: Re: [flexcoders] How to properly subclass a component using mxml

 


Since you are extending DataGrid via a mxml way, you don't have to use "mx" namespace.

Try removing the red text and see if it works, this is how I create extended datagrid several months ago.


<myComp:BetterDataGrid>
     <mx:columns>
            <mx:DataGridColumn headerText="Song Name" dataField="label"/>
            <mx:DataGridColumn headerText="Artist" dataField="label"/>
    </mx:columns>
</myComp:BetterDataGrid>








 


Jeremy.

 

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to