TreeView - load children's data with pagination support

Posted by: gkukko on 2 August 2018, 12:30 am EST

  • Posted 2 August 2018, 12:30 am EST

    Hi,

    I am using WJTreeView in our angular 2 project for showing hierarchy representation of data. To load the children's data I use lazyLoadFunction, where itemssource is updated with all it's children.

    I am trying to update the treeview i.e. it will only load few (e.g. 25) children in lazyLoadFunction and when user scrolls then load another data.

    I think, this is useful if there are hundreds of children's available.

  • Replied 3 August 2018, 4:11 pm EST

    Hi,
    As we understand, you would like to load TreeNode on the scroll for Child Nodes not for TreeView.

    If this is the case, could you please let me know the loading should be on TreeView scrollbars or you would like to show the scrollbar for TreeView's nodes too.


    Please confirm this...

    Please also confirm if you are looking for data load on scrolling for the same level or you would like to load data for child nodes in a loop.


    ~Manish
  • Replied 6 August 2018, 12:15 am EST

    Hi Manish,

    Your understanding is correct. We would like to load the data on treeview scrollbars. I don't think showing scrollbar for TreeView node is good option.

    We are looking for data load on same level. Please let me know if you need more information.
  • Replied 6 August 2018, 8:44 am EST

    Hi,

    We have logged your request with internal tracking id 337323.

    We will let you know for any updates on this.

    ~Manish
  • Replied 24 August 2018, 8:07 am EST

    Hi,
    We are sorry for the delayed response on this issue.
    We have created a small demo sample for level 1 child loading on demand while scrolling. Please refer to the attached sample.

    ~Manish

    TreeView_InfiniteScroll.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels