-
Ext JS Premium Member
Trees and huge nodes
Hi,
I might have node that contains tens of thousands child nodes.
I'm trying to figure out how to lazily load node children (infinite scrolling).
I can load all children in one go (like it works currently) but it may take minutes to load such amount of a data (in current tests biggest nodes are ~14MB of json data). So is there way to load them like in grid dynamically?
Another option could be grouping by multiple columns in grid, but I haven't found any solution for that either.
-
I'd have thought coming up with some logical way of grouping these nodes would make the job simpler, that's what I always try and do when given a large amount of data.
If there's really no way you can conceive of doing this I'd argue that the data doesn't really belong in a tree; how do you expect your users to actually use it? Wouldn't a traditional grid be better?
What do your nodes represent, and what actions do your users have to perform on them?
-
Ext JS Premium Member
Leaf nodes represent connectors within devices. They're normally grouped in bundles according to their connection destination.
But in case of clean device it has just bunch of connectors that are not connected to anywhere.
Usually connection happens in some range of connectors.
One thing is that I could artifically split ranges to smaller parts but have to think about it.
-
Without knowing exactly what you mean by connector (hardware, software, association of some kind?) I'd assume they could be categorised or grouped in some way.
Sorry I can't be more help.
I'd assume, since trees and grids have a common base of table (for some reason I've never quite fathomed), I suppose it would technically be possible to do something similar to the infinite grid with it, but you'd probably run into my favourite(!) class NodeInterface, which is about as flexible as a brick!
-
Ext JS Premium Member
-
Ext JS Premium Member
Paging is nice option but it doesn't fit very well in my usecase where I actually have two trees open, user selects items from both and does interactions there.
So I'm more interested seamless (infinite) grid like behavior.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules