I am using another extended grid and I had to use the name space for the columns tag that was used for the grid tag,

<view:PrintableDownloadableDataGrid....>
    <view:columns>

I am not 100% sure why it has to be this way...

On 10/18/06, Tom Chiverton <[EMAIL PROTECTED]> wrote:

I have a class that extends DataGrid.

If I try and use it with some example columns:
<view:PrintableDownloadableDataGrid id="printGrid"
dataProvider="{someData}"
downloadUrl="http://some.where/foo.bar"
>
<mx:columns>
<mx:DataGridColumn dataField="itemOne"/>
<mx:DataGridColumn dataField="itemTwo"/>
</mx:columns>
</view:PrintableDownloadableDataGrid>
(so just like it's base class), I get:
src/testPrintableDownloadableDataGrid.mxml(30): Error: Could not resolve
<mx:columns> to a component implementation.

But if instead I construct an array of DataGridColumns and pass them in by
hand instead:
var cols:Array=new Array();
cols[0]=new DataGridColumn();
cols[0].dataField="itemOne";
cols[1]=new DataGridColumn();
cols[1].dataField="itemTwo";
printGrid.columns=cols;
it works :-(

What's up, and (for bonus points) why ? Does the compiler perform some special
magic for the Adobe class' to make the nested syntax work ?
--
Tom Chiverton
Helping to professionally revolutionize value-added architectures

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.




--
diabetic? http://www.diabetesforums.com
Albert Einstein - "It's not that I'm so smart, it's just that I stay with problems longer." __._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to