Demos
RadTreeView
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
File Browser
36
Outlook
37
Treeview Builder with ASP.NET AJAX
38
Outlook Panels
39
Resources Drag and Drop
40
Rich Context Menu
41
AJAX RadTreeView
RadControls
RadAjax
RadCalendar
RadChart
RadComboBox
RadDock
RadEditor
RadGrid
RadInput
RadMenu
RadPanelbar
RadRotator
RadSpell
RadSplitter
RadTabStrip
RadToolbar
RadTreeView
RadUpload
RadWindow
Add / Remove / Disable
Nodes
Run example in:
C#
VB.NET
Click on a node to add / remove / disable it
Add a Node Clone
RadEditor
RadDesigner
RadMenu
RadPanelBar
Delete a Node
RadEditor
RadDesigner
RadMenu
RadPanelBar
Disable a Node
RadEditor
RadDesigner
RadMenu
RadPanelBar
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.
PID425 ; RID6