Trying to use dgrid 0.4.0 to display a tree structure. (no prior experience with previous versions 0.3.x).
I built this sample with two folders : alice and bob ; each wo
As noted by Dylan and myself on the github issue with the same question, you need to pass a collection to your grid that only represents the top-level items. When using dstore/Tree
, you can call store.getRootCollection()
for this purpose.
So instead of collection: astore
, you want collection: astore.getRootCollection()
.