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:
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
--
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

