Thanks - it appears to be working now. The code is as follows
var cname:String = a + ass.id;
var col:mx.controls.gridclasses.DataGridColumn = new
mx.controls.gridclasses.DataGridColumn(cname);
col.columnName=cname;
col.headerText=cname;
col.headerRenderer=GradeHeaderRenderer;
Does someone have an example of the headerRenderer that they could
share? Does the headerRenderer need to implement the same methods
as a cellRenderer - i.e. setValue? Are there any properties (beyond
listOwner, getCellIndex, getDataLabel) that are set?
I am trying to create a header in which
As a followup question, how can I pass context to the
headerRenderer, or how can the headerRenderer know about its
DataGridColumn
--- In flexcoders@yahoogroups.com, viraf_bankwalla
[EMAIL PROTECTED] wrote:
Does someone have an example of the headerRenderer that they could
share? Does
viraf_bankwalla wrote:
As a followup question, how can I pass context to the
headerRenderer, or how can the headerRenderer know about its
DataGridColumn
See this example:
http://manish.revise.org/archives/2005/01/16/drag-n-drop-reodering-of-datagrid-columns/
I'm getting a reference to the
Manish,
Thanks for the example (I am assuming that you are refering to
ReorderableHeaderRenderer.as). You are looking up the column based
on the listOwner.columns. This works if the setValue is called.
For some reason, I do not see setValue being called. My cell
renderer is defined in MXML.
viraf_bankwalla wrote:
For some reason, I do not see setValue being called. My cell
renderer is defined in MXML.
How are you setting the headerRenderer? Can you post some code, please?
Manish
6 matches
Mail list logo