i'm trying bind angular-2 ag-grid observable. data in grid shown expected when grid loads first time. following code this:
this.settingsservice.gen.subscribe( (settings) => { this.gridoptions.rowdata = settings; });
i have set grid options in constructor of typescript class in component.
now, when update data observable, see updated changes propagated 'settings' (shown above), grid not refresh new data.
i have tried possible ways refresh grid using gridoptions.api.refreshview(). tried solution given here. unfortunately, none of them worked.
any appreciated. thanks.
Comments
Post a Comment