Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paria Shiri 36 posts 109 karma points
    Mar 31, 2023 @ 10:10
    Paria Shiri
    0

    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.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Mar 31, 2023 @ 11:19
    Huw Reddick
    0

    Are the children all the same document type? If they are you could enable listview for them on the parent

  • Paria Shiri 36 posts 109 karma points
    Mar 31, 2023 @ 14:03
    Paria Shiri
    0

    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)

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Mar 31, 2023 @ 14:38
    Huw Reddick
    1

    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.

  • Paria Shiri 36 posts 109 karma points
    Apr 11, 2023 @ 09:37
    Paria Shiri
    0

    Thanks for your suggestions, I will try that if I couldn't find a way.

Please Sign in or register to post replies

Write your reply to:

Draft