angular-ui/ui-grid

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

Open

#4,742 opened on 2015年11月20日

GitHub で見る
 (10 comments) (0 reactions) (1 assignee)JavaScript (5,395 stars) (2,496 forks)batch import
good first issuegrid-groupinggrid-tree-viewtype: bug

説明

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 ?

コントリビューターガイド