This is a migrated thread and some comments may be shown as answers.

TriState and OnClientNodeChecked - not firing for children?

1 Answer 36 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
BRENT
Top achievements
Rank 1
BRENT asked on 03 Aug 2012, 04:55 PM
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?

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 07 Aug 2012, 11:13 AM
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.
Tags
TreeView
Asked by
BRENT
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or