Note: this Quick-Start framework uses regular ASP.NET components, suitable for evaluation on machines without MCMS. This distribution, however, includes special MCMS versions of all components, which have the full functionality of the ASP.NET controls plus some MCMS-specific features.
Read More
.
Demos
r.a.d.treeview
1
Overview
Functionality
2
First Look
3
Drag & Drop
4
Templates
5
Context Menu
6
CheckBox Support
7
Node Text Editing
8
Keyboard Support
9
Single Expand Path
10
Custom Attributes
11
Multi-Node Selection
12
Right-to-Left Support
13
Multi-Language Support
14
Frames Support
15
Modal Dialog
16
TreeView ComboBox
ASP.NET 2.0 Features
17
Declarative Datasources
18
Validation Group
19
Cross Page PostBack
Populating the control
20
Data Binding
21
Populating programmatically
22
Populating from SQL
23
Populating from Xml
Using the server-side API
24
Add / Remove / Disable
Nodes
25
Server-Side Events
Using the client-side API
26
Client-Side API
27
Client-side events
Programming
28
AJAX Load-on-Demand SQL
29
AJAX Load-on-Demand Directory
30
Load-on-Demand (SQL)
31
Directory Structure
Appearance
32
Skinning
33
Custom Node Style
34
No Line Images
Integration
35
Outlook Panels
36
Resources Drag and Drop
37
Rich Context Menu
r.a.d.controls
r.a.d.chart
r.a.d.combobox
r.a.d.editor
r.a.d.grid
r.a.d.menu
r.a.d.panelbar
r.a.d.spell
r.a.d.tabstrip
r.a.d.treeview
Add / Remove / Disable
Nodes
Run example in:
C#
VB.NET
Click on a node to add / remove / disable it
Add a Node Clone
r.a.d.editor
r.a.d.designer
r.a.d.menu
r.a.d.panelbar
Delete a Node
r.a.d.editor
r.a.d.designer
r.a.d.menu
r.a.d.panelbar
Disable a Node
r.a.d.editor
r.a.d.designer
r.a.d.menu
r.a.d.panelbar
Source Code & Description
Adding, deleting and disabling tree nodes at runtime can be achieved with only a few lines of code. In this example, we take advantage of the
NodeClick
server-side event. When the event is fired we check the text of the parent of the clicked node and, depending on the parent text ("Add", "Delete", or "Disable"), we perform the corresponding action.
All child nodes for a particular RadTreeView/RadTreeNode are stored in a
Nodes
collection of type
RadTreeNodeCollection.
Adding nodes at runtime can be achieved using the
AddNode(RadTreeNode
node
)
method of the RadTreeNode and RadTreeView class, or by directly adding the node to the
Nodes
collection of the respective parent.
You can delete nodes by using the
Remove
method of the
Nodes
collection.
Disabling/Enabling nodes can be achieved by using the
Enabled
property of each RadTreeNode.