TriState and OnClientNodeChecked - not firing for children?

2 posts, 0 answers
  1. BRENT
    BRENT avatar
    1 posts
    Member since:
    May 2012

    Posted 03 Aug 2012 Link to this post

    I'm working on implementing a tristate tree in our app, and everything is going pretty well, except for one issue.

    When you have a mid-level node and check/uncheck that, the OnClientNodeChecked event fires without a problem and I can do everything I need to do in there.. However, it appears the event isn't being fired for any children under that mid level node that also got checked/unchecked.  OnClientNodeChecking seems to have the same behavior.

    Is there something I'm missing, or will I have to do a recursive walk down the tree from the checked node in javascript, mimicking a check/uncheck on each node, to run my logic?

  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 07 Aug 2012 Link to this post

    Hi Brent,

    I have tested the following definition of RadTreeView, and it all seem to work fine at my end; the ClientNodeChecked is fired properly.
    <telerik:RadTreeView runat="server" ID="RadTreeView1" TriStateCheckBoxes="true" OnClientNodeChecked="nodeChecked"
        CheckBoxes="true">
        <Nodes>
            <telerik:RadTreeNode Text="a">
                <Nodes>
                    <telerik:RadTreeNode Text="aaa">
                    </telerik:RadTreeNode>
                </Nodes>
            </telerik:RadTreeNode>
            <telerik:RadTreeNode Text="b">
                <Nodes>
                    <telerik:RadTreeNode Text="bbb">
                        <Nodes>
                            <telerik:RadTreeNode Text="bbbbb">
                            </telerik:RadTreeNode>
                        </Nodes>
                    </telerik:RadTreeNode>
                </Nodes>
            </telerik:RadTreeNode>
        </Nodes>
    </telerik:RadTreeView>
    I have tested the RadTreeView with more than 25 nodes in depth, but I was still unable to replicate the troubled behavior.
    Could you please elaborate on your scenario a little bit more, or send us a sample page, via a support ticket, demonstrating the issue you experience?

    All the best,
    Ivana
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top