Hello,
I would like to know what is the best way to populate a tree gui which has the following
details:
My application should reflect a tree structre with about 8000 members but directly under
the root there are maximum 15 members.Its clear that each time a user open the
application he wont need to look at all the 8000 members and my question is how to build
the tree ? should I load all members and build the tree or load just the first level and
only if a user expand a member ,its children should be loaded ? and if the second way is
better ,how should I know if the members were already loaded ?
The second issue is how to do it (if there is any difference) : my application can get
the members details by quering some sql tables (the member details actually handled by
another application and are in some tables) or getting the info into the stack by using
this other application api.
Recommended Answers
Jump to PostThat's one approach, wait for someone else to write your code.
What have you tried so far? What happened when you tried to build a tree with 8K members? Are all those 8K members at the same level or are they nested under other members?
Jump to PostI was curious about the examples at the link posted on the other site. I took one of them and added 8000+ items to the tree at more than one level, compiled it and executed it. No problems. It works.
I wonder why you have not tried doing that? …
Jump to PostFinal comment: I think your instincts re "efficient and logical" may be misleading you in this particular case. 8k is a small number on today's typical machine, with processor speed measured in GigaHz and memory in GigaBytes. Remember also that "load on demand" will carry its own overheads both in …
All 16 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.