I think it should be “owner”
not listOwner for the headerRenderer.
Matt
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd
Sent: Monday, May 09, 2005 6:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
headerRenderer question
Hi.
I am writing a headerRenderer to dynamically name
the column-headers
from webService-response.
The problem is that the 'listOwner' is still
'undefined' when I access
it in the 'setValue' method of the headerRenderer
.
See the code below:
class MyHeaderRenderer extends UIComponent {
var listOwner :
MovieClip; //Reference to the parent DataGrid.
.
.
.
function setValue(strColumnName:String,
item:Object, sel:Boolean) :
Void {
var dp = listOwner.dataProvider;
.
.
.
the listOwner's dataProvider is loaded via
webService call when the
panel is loaded:
<mx:WebService
id="ws" wsdl="http://localhost:9080/MyService.wsdl"
fault="faultHandler(event.fault.faultstring)"
concurrency="single"
load="runPositionServices()" useProxy="true"
showBusyCursor="true">
.
.
.
</mx:WebService>
Is this a synchronization issue & any ideas on
how can I work around it ?
Thanks - Sanjay
Yahoo! Groups Links
|