This question is locked. New answers and comments are not allowed.
Hi,
I have encoutered an script error in telerik.treeview.*.js when I try to expand a treeview node when my session timeouts (response is HTML with login screen). I have a OnError event handler in place with parseerror handling but the error handler is not hiting. OnError handler looks like this:
My treeview:
Is this a bug in component or I'm handling it in incorrect way?
I have encoutered an script error in telerik.treeview.*.js when I try to expand a treeview node when my session timeouts (response is HTML with login screen). I have a OnError event handler in place with parseerror handling but the error handler is not hiting. OnError handler looks like this:
function OnAjaxError(e){ if (e.textStatus == "parsererror") { window.location = window.location; e.preventDefault(); }}My treeview:
@(Html.Telerik() .TreeView() .Name("Foo") .DragAndDrop(dragAndDrop => { dragAndDrop.Enabled(true) .DropTargets("#SelectedNodes"); }) .ClientEvents(events => { events.OnNodeDrop("OnNodeDrop"); events.OnDataBound("OnDataBound"); events.OnError("OnAjaxError"); }) .DataBinding(binding => binding.Ajax() .Select("Get", "Controller")))Is this a bug in component or I'm handling it in incorrect way?