Checking checkbox on OnClientNodeClicking event

2 posts, 0 answers
  1. taeho
    taeho avatar
    29 posts
    Member since:
    Mar 2008

    Posted 26 Mar 2009 Link to this post

    Hi,

    I just wonder how to check a checkbox of clicked node in Treeview (CheckBoxes="true")?

    <telerik:RadTreeView ID="ObjectiveSelector"
                                                runat="server"
                                 Height="400"
                                 Width="300"  
                                 CheckChildNodes="true"
                                 TriStateCheckBoxes="true"
                                 OnClientNodeChecking="onNodeChecking"
                                    OnClientNodeClicking="nodeClicking" CheckBoxes="true">
                                            </telerik:RadTreeView>

    function nodeClicking(sender, args) {
                alert("OnClientNodeChecking: " + args.get_node().get_text());
            }

    Thanks in advance,

    Toby
  2. taeho
    taeho avatar
    29 posts
    Member since:
    Mar 2008

    Posted 26 Mar 2009 Link to this post

    Sorry I worked that out..

    function nodeClicking(sender, args) {
                args.get_node().check();
            }

    Thanks a lot anyway for your help...
Back to Top