fires when the item's text is changed
myTreeView.attachEvent("onTextChange", function(id, text){ // your code here });