New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

CheckAll and Clear Buttons

Select products:

  • UI for ASP.NET Ajax
    • Grid
    • Scheduler
    • Editor
  • UI for Silverlight
    • Grid
    • Menu
    • Editor

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.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="DefaultVB.aspx.vb" Inherits="DropDownTree.Examples.Functionality.CheckAllAndClearButtons.DefaultVB" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<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