Our blazing fast Grid component built with pure JavaScript


Post by bensullivan »

Hi

We have the requirement to show rows that each have a tree. There is no tree overarching all the rows.

For example there would be multiple rows like:
Screen Shot 2019-10-16 at 18.06.42.png
Screen Shot 2019-10-16 at 18.06.42.png (99.53 KiB) Viewed 875 times
Where each of these rows will have underlying tree level that will show related work items. For example:
Screen Shot 2019-10-16 at 18.06.55.png
Screen Shot 2019-10-16 at 18.06.55.png (114.42 KiB) Viewed 875 times
Can we do this or does there need to be an overarching top tree level over all rows to support a tree structure?

Thanks

Ben

Post by Maxim Gorkovsky »

Hello.
What I see on this picture could be represented with a tree:
new Store({
    data : [
        {
            id : 8
            children : [...]
        },
        {
            id : 1,
            expanded : true,
            children : [...]
        }
    ]
})
You don't need additional configs to work with a store as tree, it will learn structure from the data.

Post Reply