-
-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large tree members handling #169
Comments
Fancytree is not yet made for flat lists of that size. Maybe you want to have a look at some of the existing grid plugins. See also #54 |
It will be nice to start a paging plugin. See this demo of a grid: http://www.jeasyui.com/tutorial/datagrid/datagrid27_demo.html There is no reason why a tree can not have the same functionality. As you scroll up and down you can rebuild or even update the visible nodes. |
Maybe as a first cut: A node level maxsize can be set for example: maxLevelSize = 50, that means no more than 50 nodes will be drawn per level... as you scroll up or down nodes are destroyed or created as necessary... It is almost like the tree is giving you a small window into your json data. The search can potentially search your json data... and render the nodes as required and also the sort. Your thoughts? |
Yes, why not. You could fork this repository, create a new branch (e.g. 'paging') and start a new extension. See here for some details: |
Added a specification document |
Need to see if we can use https://clusterize.js.org/ to implement this. |
@mar10 - I've put together a jsbin you can find it over here which contains fancytree (table extension) integrated with clusterize.js, however collapse and expand is not working. I am going to work more on this. clusterize.js can be given an array of table rows as an input to render. |
big JSON render bug |
Hi,
I have a requirement to handle very large tree members. We are talking 100,000+ and could be a million.
This is at 1 level. i.e. one node with that many children.
How would this work in fancytree?
I was thinking that we need a couple of pieces of information the total number of children and how many to retrieve in one go (say 50).
The tree would then render only the 50 and no more than that... and as you scroll down more data is fetched from the server representing the page you are looking at. Page being (total number / 50)....
The search, sort, add, delete, update will need to be handled server side.
Any thoughts?
Thanks a lot.
The text was updated successfully, but these errors were encountered: