Version

NodeEditingTextChanging Property

This event is fired, before a tree node text is changed.
Syntax
'Declaration
 
Public Property NodeEditingTextChanging As String
public string NodeEditingTextChanging {get; set;}
Example
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);
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also