Rapid populating of treeView controls
Posted
#1
(In Topic #1384)
Regular

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
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 :!:
Regards,
C.
Posted
Guru

Posted
Regular

b
Posted
Regular

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.
1 guest and 0 members have just viewed this.


