Since that the treeView module uses treeBase module, saveState module is broken
Hi,
I wanted to implement treeView on my grid, and i wanted to restore tree state after refreshing data.
In the saveState module, in saveTreeView and restoreTreeView functions, there is this condition :
if ( !grid.api.treeView || !grid.options.saveTreeView ){
return {};
}
It seems obsolete since the treeView module uses treeBase module , isn't it ? If i remove the condition, of course i get this error log : TypeError: Cannot read property 'getTreeView' of undefined
I missed something or i'm true ?
I think you're correct, and I think treeBase.getTreeState and treeBase.setTreeState are probably the calls that are needed.
I believe this bug is also inherited by ui.grid.expandable which fails to save and restore state. You might want to look into that as well when working on this.
Expandable does not share from treeBase. I don't believe expandable has been updated to work with save/restore.
Sent from my iPhone
On 27 Nov 2015, at 6:43 AM, Kurt <[email protected]mailto:[email protected]> wrote:
I believe this bug is also inherited by ui.grid.expandable which fails to save and restore state. You might want to look into that as well when working on this.
Reply to this email directly or view it on GitHubhttps://github.com/angular-ui/ui-grid/issues/4742#issuecomment-159991687.
Is there any plan on the roadmap to get this working?
++ Please, thanks!
I have the same issue, Is there any update?
Any Updates on this?
Facing the same issue, is there any update?
Any update on this issue?
Duplicate of #4145