Skip to content

saveState method not working on tree view feature #4145

@tringuyenminh92

Description

@tringuyenminh92

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

Activity

changed the title [-]ScrollTo and $scope.gridApi.cellNav.scrollToFocus not working on tree view feature[/-] [+]saveState method not working on tree view feature[/+] on Aug 9, 2015
innai30

innai30 commented on Oct 26, 2016

@innai30

I have the same issue, Is there any update?

Mahi44

Mahi44 commented on Jan 31, 2017

@Mahi44

I'm also facing same issue.

jawaharlalt

jawaharlalt commented on Feb 21, 2017

@jawaharlalt

Facing the same issue

webamar

webamar commented on Sep 5, 2017

@webamar

Any update on this issue?

AgDude

AgDude commented on Dec 21, 2018

@AgDude
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @AgDude@mportuga@webamar@tringuyenminh92@jawaharlalt

        Issue actions

          saveState method not working on tree view feature · Issue #4145 · angular-ui/ui-grid