problem with uncheckAllNodes

3 posts, 0 answers
  1. Marian
    Marian avatar
    4 posts
    Member since:
    Jun 2010

    Posted 22 Jun 2011 Link to this post

    i have problem with uncheckAllNodes (client side). if i call this function i got js error "uncheckAllNodes is not function"

    $find("<%= radCmbBranch.Items[0].FindControl("RadTreeViewBranch").ClientID %>").uncheckAllNodes();
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Jun 2011 Link to this post

    Hello Marian,
    I have tried the following code and which worked as expected.
    <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250px" ShowToggleImage="True">
      <telerik:RadTreeView runat="server" CheckBoxes="true" ID="RadTreeView1" Width="100%" Height="140px">
          <telerik:RadTreeNode runat="server" Text="Australia">
               <telerik:RadTreeNode runat="server" Text="South East Australia">
                      <telerik:RadTreeNode runat="server" Text="Sydney">
                    <telerik:RadTreeNode runat="server" Text="Melbourne">
            <telerik:RadComboBoxItem Text="" />
    <asp:Button ID="Button1" runat="server" OnClientClick="return UnCheckAll();" Text="UnCheckAll();" />

    function UnCheckAll()
      var treeview=$find("<%= RadComboBox1.Items[0].FindControl("RadTreeView1").ClientID %>")

  3. Kate
    Kate avatar
    1898 posts

    Posted 28 Jun 2011 Link to this post

    Hello Marian,

    For more details on the code that Princy has provided, you could take a look at the following two help articles:
    Accessing a RadTreeView Embedded in Another Control and RadTreeView - uncheckAllNodes.

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top