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
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
r.a.d.
treeview
supports right-click menus for each tree-node (Context Menus). You can define any number of context menus, assign them a name and then associate any tree-node 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 tree-node 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.