バージョン

NodeEditingTextChanging プロパティ

ツリー ノードのテキストが変更される前にこのイベントが発生します。
シンタックス
'宣言
 
Public Property NodeEditingTextChanging As String
public string NodeEditingTextChanging {get; set;}
使用例
WebDataTree1.ClientEvents.NodeEditingTextChanging = "WebDataTree_NodeEditingTextChanging"
WebDataTree1.ClientEvents.NodeEditingTextChanging = "WebDataTree_NodeEditingTextChanging";
// The client event 'NodeEditingTextChanging' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the TextChangeEventArgs
    
function WebDataTree_NodeEditingTextChanging(sender, e) {

    //Gets the node object that is firing the NodeEditingTextChanged event
    var node = e.getNode();

    //Gets the text of the node
    var text = node.get_text();
      //Gets the new text on the node
    var newText = e.getNewText();

    if (!confirm("Are you sure you want to change the text '" + text + "' to '" + newText + "'?"))
        //Cancels the NodeEditingTextChanging event
        e.set_cancel(true);
}
参照