dgrid 0.4.0 tree looks flat before user interacts

后端 未结 1 1086
广开言路
广开言路 2021-01-25 19:00

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

1条回答
  •  隐瞒了意图╮
    2021-01-25 20:00

    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().

    0 讨论(0)
提交回复
热议问题