RadComboBox with check all option progamatically

2 posts, 0 answers
  1. Rev
    Rev avatar
    6 posts
    Member since:
    Apr 2013

    Posted 29 Apr 2013 Link to this post

    Hi all,

    I created RadCombox with  <headerTemplate> and <ItemTemplate>.
    Now I need to select all items by selecting "Check All" option .
    Can anyone tell how to add "check all" option for this.
    Note: I tried with EnableCheckAllItemsCheckBox="true" ,but it is not selecting all items .
  2. Plamen
    Plamen avatar
    3057 posts

    Posted 02 May 2013 Link to this post

    Hi Rev,

    Since you are using item templates you will have to use your custom code to check or uncheck all the checkboxes. Here is a sample code how such behavior can be achieved:

             function OnClientClicked(sender, args) {
                 $telerik.$(".rcbSlide input:checkbox").attr("checked", "checked");
         <telerik:RadButton runat="server" ID="Rb1" AutoPostBack="false" OnClientClicked="OnClientClicked"></telerik:RadButton>
         <telerik:RadComboBox ID="RadComboBox1" runat="server"
                 <asp:CheckBox runat="server" />

    Hope this will be helpful.Greetings,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top