select

TreeView / CheckBox Support

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
Tri-state checkboxes (CheckChildren=True)
  • Software
    • Business & Office
    • Database
    • Networking
    • Presentation
    • Project Management
    • Reports
    • Spreadsheet
    • Word Processing
  • Books
  • Music
  • Movies



You have selected the following items: 

Check the nodes Server side: Post Back On Check
  • Software
    • Business & Office
    • Database
    • Networking
    • Presentation
    • Project Management
    • Reports
    • Spreadsheet
    • Word Processing
  • Books
  • Music
  • Movies



You have selected the following items: 

Example Source Code & Description

Instructions
Open in new window
  • RadTreeView fully supports checkboxes, which are displayed next to the TreeNodes. You can enable the checkboxes mode by setting the treeview's CheckBoxes property to "True".

        <telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" ... />
    
    

    All TreeNodes will display checkboxes if the CheckBoxes property has been enabled. You can, however, disable a checkbox for a particular TreeNode by settings its Checkable property to "False". By default checking a node will not check the child nodes. You can enable this behavior by setting the CheckChildNodes property to "True"

    You can enable tri-state checkboxes by setting the TriStateCheckBoxes property to "True".

    You can retrieve all checked TreeNodes upon a postback to the server-side by using the CheckedNodes property, which returns an ArrayList collection of the TreeNodes that have been checked in the browser.

    You do not have to set any property to make the treeview postback upon checking a node. If you simply hook on the NodeCheck server event, the treeview will postback upon checking. If you need to disable the postback for certain nodes, you can use the OnClientNodeChecking event and call the set_cancel(true) method of the event argumentrs

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us