I wonder if there is a way to not load and show all the child items of a tree, for example, if we have a node with 100 child items. the loading time is so long. Is there a way to force a load only N number of items and have load more... button in the back office?
I would be glad if someone guides me in the right direction.
It's not what I asked :)
I want to keep its tree view.
There is 4 nested levels of doctype here : Level1(type1)=> 100 children(type2)
each child=> up to 10 children(type3)=> each child up to 3 children (type4)
I didn't say it was, I was just offering a way of doing it without you having to write lots of custom code for the backoffice if your doctypes were the same :)
I would suggest using some sort of dummy doctype to partition your nodes in to groups so it doesn't need to load them all in one go, there used to be a package called "Virtual folders" that would do this but not sure if it is available for Umbraco 9
TBH I would not expect 100 child nodes to pose that much of a performance issue.
Lazy loading in backoffice tree view
I wonder if there is a way to not load and show all the child items of a tree, for example, if we have a node with 100 child items. the loading time is so long. Is there a way to force a load only N number of items and have load more... button in the back office? I would be glad if someone guides me in the right direction.
Are the children all the same document type? If they are you could enable listview for them on the parent
It's not what I asked :) I want to keep its tree view. There is 4 nested levels of doctype here : Level1(type1)=> 100 children(type2) each child=> up to 10 children(type3)=> each child up to 3 children (type4)
I didn't say it was, I was just offering a way of doing it without you having to write lots of custom code for the backoffice if your doctypes were the same :)
I would suggest using some sort of dummy doctype to partition your nodes in to groups so it doesn't need to load them all in one go, there used to be a package called "Virtual folders" that would do this but not sure if it is available for Umbraco 9
TBH I would not expect 100 child nodes to pose that much of a performance issue.
Thanks for your suggestions, I will try that if I couldn't find a way.
is working on a reply...