Our pure JavaScript Scheduler component


Post by coderboy@12 »

Hello, I found when I use normal view and I collapse two of group and then I change my timeline dates so I reset the data of resourceStore then It's maintaining that collapse data but same thing I do in TreeGroup view it's not maintaining.

I see in your examples you do the same so Is there any way to do it in TreeGroup view.

Thanks


Post by tasnim »

How can we reproduce it? I've tried reproducing it here https://bryntum.com/products/scheduler/examples/tree-grouping/ and it seems to be working fine! Could you please share the steps that we can follow to reproduce it?

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post by coderboy@12 »

https://bryntum.com/products/scheduler/examples/infinite-scroll-tree/

Look at this example just collapse 2 or 3 groups and click on reset data than it will be expand again I am not using same method, it's just I am using react state and apply that into Scheduler instance and than updating state.


Post by tasnim »

To restore the expanded state you can set https://bryntum.com/products/scheduler/docs/api/Core/data/mixin/StoreTree#config-keepExpandedOnLoad to true in resource store and it should be working as expected

Here is a GIF showcasing the behavior

chrome_DuvSECEGnT.gif
chrome_DuvSECEGnT.gif (749.04 KiB) Viewed 513 times

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post Reply