Hi Everybody,
Any ideas? for example this code returns Cannot set property 'onblur' of null (G Chrome) and stops execution with Uncaught RangeError, Maximum call stack size exceeded
I would like to crete new node on clientside and set this node to edit mode. And when user doesn't change the label and click outside, i would like show radalert and cancel postback - so far so good. But after that I would like to set node to edit mode again. And I'm getting strange unhanded exceptions from code. This is my snippet:
function onClientNodeEditing(sender, eventArgs) { |
var node = eventArgs.get_node(); |
var oldText = node.get_text(); |
var newText = eventArgs.get_newText() |
var tree = $find("<%= ThreadRoot.ClientID %>"); |
if (newText == oldText) { |
radalert(Please change name of category!"); |
tree.trackChanges(); |
node.startEdit(); |
tree.commitChanges(); |
eventArgs.set_cancel(true); |
} |
} |
Any ideas? for example this code returns Cannot set property 'onblur' of null (G Chrome) and stops execution with Uncaught RangeError, Maximum call stack size exceeded