Re: DataGridColumn.headerRenderer / rotating text in header

2005-02-27 Thread viraf_bankwalla
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;

DataGridColumn.headerRenderer / rotating text in header

2005-02-26 Thread viraf_bankwalla
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

Re: DataGridColumn.headerRenderer / rotating text in header

2005-02-26 Thread viraf_bankwalla
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

Re: [flexcoders] Re: DataGridColumn.headerRenderer / rotating text in header

2005-02-26 Thread Manish Jethani
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

Re: DataGridColumn.headerRenderer / rotating text in header

2005-02-26 Thread viraf_bankwalla
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.

Re: [flexcoders] Re: DataGridColumn.headerRenderer / rotating text in header

2005-02-26 Thread Manish Jethani
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