The binding is done but you’re
changing an element within the DataProvider without notifying the DataGrid that
anything changed. You can call invalidate() on the DG in the result handler of
webservice.MethodName and see if everything draws immediately. Otherwise you
could re-assign the whole dataProvider which also triggers this sort of thing.
Matt
From: goran187
[mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24,2005
4:01 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] MODEL
BINDING / DATAGRID
I have a web service returning a value to a node
in a model
<mx:Model id="OneModel"
>
<entity>
<name>myName</name>
<res>{webservice.MethodName.result[0].res}</res>
</entity>
</mx:Model>
I also have a button control that sends a request
to the service and
the result should be returned under the res node
in OneModel.
The model is used as the dataProvider for a
datagrid.
Nothing happens until I rollover the particular
item in the grid.
When I mouse over, the result from the web service
appears.
Apparently, the binding is not done automatically.
How can I force
this?
Thanks,
Goran
|