TreeView with Custom Fields

0 Answers 29 Views
TreeView
Mike
Top achievements
Rank 1
Mike asked on 30 Jan 2022, 09:16 PM

I have hierarchal data with thousands of nodes.  I am using a RadTreeView control with "Load On Demand" mode, with Expand mode set to "ServerSideCallback".  I set up the handler. It creates the child nodes, grabs about 10 custom fields and adds them to the "Attributes" collection, and adds the nodes to e.Node.Nodes collection.  All of this is working great, but I want to display values from the Attributes collection.

How do I access those attributes from the NodeTemplate? 

The node template seems to work, but it is not showing the fields. I assume this is because I am just adding the nodes and do not call "DataBind"?

Thanks.

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Mike
Top achievements
Rank 1
Share this question
or