バージョン

CheckBoxSelectionChanged プロパティ (DataTreeClientEvents)

チェック ボックスの選択が変更された後に、このイベントが発生します。
シンタックス
'宣言
 
Public Property CheckBoxSelectionChanged As String
public string CheckBoxSelectionChanged {get; set;}
使用例
WebDataTree1.ClientEvents.CheckBoxSelectionChanged = "WebDataTree_CheckBoxSelectionChanged"
WebDataTree1.ClientEvents.CheckBoxSelectionChanged = "WebDataTree_CheckBoxSelectionChanged";
// The client event 'NodeChecking' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the DataTreeSelectionEventArgs
function WebDataTree_CheckBoxSelectionChanged(sender, e) {

    var str = "";
    
    //Get thre newly selected tree nodes array
    var newCheckedNodes = e.getNewCheckedNodes();
    var countCheckedNodes = newCheckedNodes.length;
                  
    for (var i = 0; i < countCheckedNodes; i++) {
        //Gets the text of the node at index i in the array
        var nodeText = newCheckedNodes[i].get_text();

        str = str + "  " + nodeText;
    }

    window.status = "Newly Checked node :" + str;
    
}
参照