Setting Indeterminate check state on client side

4 posts, 1 answers
  1. Aykut
    Aykut avatar
    25 posts
    Member since:
    Feb 2009

    Posted 01 May 2009 Link to this post

    Is it possible to set a node's checked state to indeterminate even if it doesn't have child nodes?
    And I want to do it in clinetside.
  2. Answer
    Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 04 May 2009 Link to this post

    Hi Aykut,

    Here is some sample code which will make a tree node look as indeterminate:

            <script type="text/javascript">
                function onLoad(sender, args) {
                    var node = sender.get_nodes().getNode(0);
                    node.get_checkBoxElement().className = "rtIndeterminate";
            <telerik:RadTreeView runat="server" ID="RadTreeView1"
                TriStateCheckBoxes="true" CheckBoxes="true" OnClientLoad="onLoad">
                    <telerik:RadTreeNode Text="Node1"></telerik:RadTreeNode>

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. mirang
    mirang avatar
    115 posts
    Member since:
    Aug 2010

    Posted 05 Mar 2012 Link to this post

    This only works when the Tristatecheckboxes=true and checkchildnodes=true is set. Is it possible to have the same thing when the tristatecheckboxes=false ?
  4. Bozhidar
    Bozhidar avatar
    1146 posts

    Posted 06 Mar 2012 Link to this post


    An answer to the question has already been provided in the following forum topic: 
    Kind regards,
    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