This is a migrated thread and some comments may be shown as answers.

DoubleClick on cotrols causes LoadingPanel Javascript error

1 Answer 17 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Forum
Top achievements
Rank 1
Forum asked on 25 Sep 2013, 03:09 PM
var b=(!this._isSticky)?$get(this.get_element().id+k):this.get_element();
var i=new Date();
if(b==null){return;
}var j=i-b._startDisplayTime;
var f=this._minDisplayTime;
var e=new Telerik.Web.UI.AjaxLoadingPanelEventArgs(b,d);
this.raise_hiding(e);
if(!e.get_cancelNativeDisplay()){var a=this.get_animationDuration();
if(this._isSticky){if(f>j){window.setTimeout(function(){if(a>0){$telerik.$(b).fadeOut(a,function(){b.style.display="none";
});
}else{b.style.display="none";
}},f-j);
}else{if(a>0){$telerik.$(b).fadeOut(a,function(){b.style.display="none";
});
}else{b.style.display="none";
}}}else{if(f>j){window.setTimeout(function(){if(a>0){$telerik.$(b).fadeOut(a,function(){b.parentNode.removeChild(b);
});
}else{b.parentNode.removeChild(b);
}},f-j);
}else{if(a>0){$telerik.$(b).fadeOut(a,function(){b.parentNode.removeChild(b);
});
}else{b.parentNode.removeChild(b);
}}}}

I have a masterpage with a toolbar and RadAjaxManager control and the content page has the RadAjaxManagerProxy and RadAjaxLoadingPanel.  When users accidently double clicks the toolbar button, Loading panel wait screen shows up and Never goes away.  Single click works fine.  When I run this inside Visual Studio I get a JavaScript error message: JavaScript runtime error: Unable to get property 'removeChild' of undefined or null reference.  This is originating from the line: b.parentNode.removeChild(b). 
I am using version 2013.1.417.40. 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 30 Sep 2013, 02:13 PM
Hello,

Can you please post your markup here so that we can try to replicate the problem?

Regards,
Daniel
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Ajax
Asked by
Forum
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or