Monday, March 11, 2019

How to display a tree view with thousands of records?


I have a hierarchical structure such as the following :


every user has some contracts associated to him, every contract has some groups associated to him, and every group has some articles.


I represent this visually using a TreeView (with checkboxes such as in http://www.codeproject.com/KB/WPF/TreeViewWithCheckBoxes.aspx) in WPF :


(every user clicked on displays this structure in a TreeView) :


>Contract1

>Group1
>Article1
>Article2
>Article3
>Article4
...
>Group2
>Group3
------------
Add Button

Remove Button
-------------

Using the precedent screen, the user can Add further Articles or Contracts or Groups to his account just by checking on them and clicking Add button or remove them by clicking Remove Button.


the problem is that there are tens of thousands of articles in every Group and I don't want to bring them all in memory at once, for it would slow things down.


Can you think of any better way of handling this ?




No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...