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
Context Menu
Run example in:
C#
VB.NET
RadTree1:
Right-click
the mouse to display context menus
Personal Folders
Deleted Items (6)
Drafts
Inbox (14)
Invoices
Junk E-mail
Outbox
Sent Items
Search Folders
Form Follow Up
Large Mail
Unread Mail
Edit
Disable
Enable All
Copy node (clone)
Delete node
New folder
Edit
Source Code & Description
RadTreeView supports right-click menus for each TreeNode (Context Menus). You can define any number of context menus, assign them a name and then associate any TreeNode with a context menu using the
ContextMenuName
property.
You can define Context Menus in an XML File in the following format:
<ContextMenus>
<Menu Name="City">
<Item Image="iconRestaurants.gif" Text="Restaurants" PostBack="True"/>
<Item Image="iconHotels.gif" Text="Hotels" PostBack="True"/>
<Item Image="iconClubs.gif" Text="Clubs" PostBack="True" />
</Menu>
<Menu Name="Country">
<Item Text="Country info" />
<Item Text="Country economics" />
<Item Text="Country politics" />
<Item Text="Country demographics" />
</Menu>
<Menu Name="Continent">
<Item Text="Info on continent" />
<Item Text="Continent highlights" />
</Menu>
</ContextMenus>
The you can assign a context menu for a TreeNode using:
<Tree>
<Node Text="U.S.A" ContextMenuName="Country" />
</Tree>
You can also directly add
ContextMenuItems
to
ContextMenu
instances and then add a particular
ContextMenu
to the
ContextMenus
ArrayList collection of the control.
Context Menus support both client- and server-side events. You can assign client events for ContextMenuItem clicks using
BeforeClientContextClick
and
AfterClientContextClick.
If you mark a
ContextMenuItem
with the PostBack="True" property a server event is generated. The event is called
OnNodeContextClick
and holds the following information: the instance of the node and the text of the context menu that was selected.
PID425 ; RID6