angular-ui/ui-grid
Ver no GitHubSince that the treeView module uses treeBase module, saveState module is broken
Open
#4.742 aberto em 20 de nov. de 2015
good first issuegrid-groupinggrid-tree-viewtype: bug
Métricas do repositório
- Stars
- (5.395 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
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 ?