angular-treetable
angular-treetable copied to clipboard
Large data creates loading problem
Hi, I am using this library and it is great. I have one problem in it. I have a large amount of data and once loaded in DOM it hangs the browser. In this we are using two way binding. Is there any other way we can skip two way binding as output data is just a report.?
Even i am facing this issue. Any updates?
You can do one-way binding for data in your templates, but I doubt you'll get a measurable performance improvement form that.
It would help if you could answer the following questions:
- Can you give me some sense of the size of the tree you're using? How many nodes are on the branch being opened?
- Do you use
initialState: 'expanded'
in opts?
It looks like a more performant solution would likely need changes in this library and the original jquery one, but answers to the above questions would help.
Thanks
My tree size is quite large. As my tree structure is like I have mainly four categories under each there can be sub-categories. In each categories/sub-categories there can be any number of nodes which shows some details.
By default I have used initialState: 'collapsed' in opts. As users clicks on categories and sub-categories its details are shown. Suppose in my tree there a sub category say A has 200 nodes in it which shows there details respectively. Once I click on sub category, it takes a lot of time to load all 200 nodes under that sub-category.