1st column showing dynamic loading data
xtreemrage opened this issue · 2 comments
When I'm loading data from a server or external json file, I only see the first column. This behavior is not expected.
I saw this issue: 36, but this is not a solution but a work around, and works only if you know the columns header before hand. I don't know that, so is there a solution for this problem?
Here a plunker (give it a moment to load).
"jquery": "^2.2.0",
"bootstrap": "^3.3.6",
"angular": "^1.5.6",
"angular-bootstrap-grid-tree": "^0.3.0"
Yes, I got the same issue, the solution for myself is assign the basic format instead of the empty array (vm.treedata=[]
). something like this: vm.treeData = [{id: '', name: '', permission: '', sort: '', url: '', children: []}];
In this case, you could load the data normally.
I also ran into this issue and mizhons solution worked for me. However this still means, all possible fields must be known in advance. I suspect this is a rather frequent use case of the tree view and it took me a while to solve the issue, so it would be good to fix this. I'm new to angular, so unfortunately I cannot provide a fix myself.