This is a migrated thread and some comments may be shown as answers.

Load on demand

1 Answer 71 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
AilWeb
Top achievements
Rank 1
AilWeb asked on 06 Aug 2008, 04:17 PM
Hello,

Im about to add a treeview to a winform that will load hierarchical information.  This data could get large at the root level, so ive started looking at ways to avoid loading it all at once.  Im familiar with the ASP.NET treeview, so I thought Id give the winform version a shot also. 

With the data I will be dealing with there will be a "level" indicator such as 1,2,3, 4 etc, that determines where in the hierarchy the item should be.  With the ASP.NET trees Ive used, I typically filter the data to the first level, then add those nodes.  Then do the same sort of thing when a node is clicked.

My question is - how do I attach data to the node, as well as simply give it a name. With the ASP.NET version, there would be a "value" attribute as well, which let me use that value to feed into other code that would go pull the next set of records.

Maybe im just not reading the right set of examples ?

help ?

1 Answer, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 08 Aug 2008, 09:17 AM
Hi AilWeb,

With the WinForms RadTreeView loading on demand is done in a similar way. You can take a look at this article in the online help. And to store additional information (for example ID from a data base) for a node you could use its Tag property.

Sincerely yours,
Jordan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Treeview
Asked by
AilWeb
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Share this question
or