Rapid populating of treeView controls

Post

Posted
Rating:
#1 (In Topic #1384)
Regular
chrisRoald is in the usergroup ‘Regular’
Hi All,
     The gridView type controls have .data property and _data event facilities to deal with large volumes of data relatively fast  :)
But these attributes don't appear in controls that are/incorporate treeViews!  - or at least not that I can find in the documentation.
Is there an alternative to the .Add method for rapidly populating controls such as the columnView?  My program is taking 6-15ms to open and decode a .json file, but approx. 30s to populate a columnView with c.900 entries from the resulting collection data-type  :!:

I want to maintain the parent-child data structure that collections can incorporate, and which treeViews display so well.  I originally thought that maybe several thousand records could be accommodated - like with gridViews - but that would take ages with .Add  :(
Any ideas on speeding loops up; using alternative controls/data-type, with which treeViews might clone the data fast; ideas for separating/splitting user's data into manageable chunks somehow (asynchronous options?). ~ Any will be very gratefully received  :idea:
Is there scope, even, for inheriting a gridView and displaying to a treeView somehow? …might be a repeat of my 'cloning' data question above.
Xmas prize for the best answer/solution :!:  :o

Regards,
C.
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
hmm, for large entries with many children I would only populate the main parent items text and picture and then populate the children when the user clicks a parent item, that could speed up load time.
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
 Double hmm! I just ran a profile on a project here. It loads 3433 objects from a collection into a treeview in a very complicated manner in 2.5 seconds.
b

Online now: No Back to the top

Post

Posted
Rating:
#4
Regular
chrisRoald is in the usergroup ‘Regular’
Thanks guys for your replies and tests ~ A round on me for sure.
     Yep, I indeed cocked up regarding the contents of my data-populating loop :roll: …
I had a picture resize (for treeView image) in there that was massively slowing the process!
So i too have now tested a less complex multi-thousand item treeview-add (c. 4300 to two consecutive treeviews) in under a second!!

I humbly take my hat off to this software, which constantly astounds me with its capabilities. Thank you all.
BruceS, thanks for the tip with managing the data; will definitely use that idea in the future.

Regards,
C.
Online now: No Back to the top
1 guest and 0 members have just viewed this.