>From my (untested!*) memory, the Binding Utils.bindProperty line you wrote
translates into "when grid's dataProvider changes, put its value into
_model.currentView". So maybe changing the order of those properties to (
_model, "currentView", grid, "dataProvider") will achieve what you're
looking for.

*I'm not near a computer where I can test this. Sorry if I remember it
wrongly.
On 20 Feb 2015 22:23, "mark goldin" <[email protected]> wrote:

> I am trying to replicate mxml binding for datagrid:
>  dataProvider="{_model.currentView}"
>
> with ActionScript:
>
>  creationComplete="init()"
>
>
> init:
> BindingUtils.bindProperty(grid, "dataProvider", _model, "currentView");
>
> override public function set dataProvider(value:Object):void
> {
> super.dataProvider = value;
> if (value)
> showData();
> }
>
> I am getting into set dataProvider only once when value is null. As a
> result I see no data.
> Any help?
>
> Thanks
>

Reply via email to