I'm trying to implement dynamic datagrid columns, and figured out you need to build an array of columns, then set that array to the columns property of datagrid. The problem is when I try to set the itemRenderer.... I can't figure it out. Here's the code I've tried that doesn't work:
 
    for (var i:Number=0;i<asProducts.length;i++) {
     thisColumn.headerText = asProducts.getItemAt(i).productName;
     thisColumn.itemRenderer = new ClassFactory(com.webapper.healthyreliefadmin.view);
     thisColumn.rendererIsEditor = true;
     newColumns[newColumns.length] = thisColumn;
    }
 
I get the error "Package cannot be used as a value: com.webapper.healthyreliefadmin.view"
 
What am I missing?
 
Shan
__._,_.___

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




__,_._,___

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/407 - Release Date: 8/3/2006

Reply via email to