DropDownTree - CheckAll and Clear Buttons

Select products:

  • UI for ASP.NET Ajax
    • Grid
    • Scheduler
    • Editor
  • UI for Silverlight
    • Grid
    • Menu
    • Editor
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

The RadDropDownTree control supports CheckAll and Clear buttons. They could be enabled through the buttons settings section and also localized through the localization section of the control.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ Page AutoEventWireup="false" CodeFile="DefaultCS.aspx.cs" Inherits="DropDownTree.Examples.Functionality.CheckAllAndClearButtons.DefaultCS"Language="c#"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
   <div class="demo-container size-thin">
       <h2>Select products:</h2>
        <telerik:RadDropDownTree RenderMode="Lightweight" ID="RadDropDownTree1" runat="server" Width="300px"
             OnNodeDataBound="RadDropDownTree1_NodeDataBound" OnDataBound="RadDropDownTree1_DataBound"
            DefaultMessage="Please select" CheckBoxes="SingleCheck"
            DataSourceID="ObjectDataSource1" DataFieldID="ID" DataFieldParentID="ParentID"
            DataTextField="Text">
            <ButtonSettings ShowCheckAll="true" ShowClear="true" />
            <Localization Clear="Clear All" />
        </telerik:RadDropDownTree>
    </div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetSiteData"
        TypeName="Telerik.Web.Examples.SiteDataItem"></asp:ObjectDataSource>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?