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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to