Skip to content

Since that the treeView module uses treeBase module, saveState module is broken #4742

Open
@jibap

Description

@jibap

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 ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions