ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

saveState method not working on tree view feature

Open tringuyenminh92 opened this issue 11 years ago • 5 comments

Hi team,

I have used $scope.gridApi.saveState.save(); and $scope.gridApi.saveState.restore($scope, $scope.state); method to save current state of tree view. But it's not working when calling restore. Then i debug save() method result, it returns empty object. Does this feature support for treeview? I'm using ui-grid - v3.0.1-d533200 - 2015-07-22 and AngularJS v1.4.1

tringuyenminh92 avatar Aug 09 '15 10:08 tringuyenminh92

I have the same issue, Is there any update?

innai30 avatar Oct 26 '16 13:10 innai30

I'm also facing same issue.

Mahi44 avatar Jan 31 '17 08:01 Mahi44

Facing the same issue

jawaharlalt avatar Feb 21 '17 12:02 jawaharlalt

Any update on this issue?

webamar avatar Sep 05 '17 08:09 webamar

This is a simple fix if someone wants to put together a PR.

The saveState service is referencing grid.api.treeView.setTreeView and grid.api.treeView.getTreeView. Those were moved to treeBase.getTreeState

AgDude avatar Dec 21 '18 20:12 AgDude