I’ve got a RadAjaxLoadingPanel in my page. When it returns from a call back, the OnClientHiding event is raised and my jQuery initialization code runs apparently fine. The jQuery adds some click handlers to some checkboxes. The jQuery has the intended effect on an initial request and appears to run OK, at least after a call back, but the actual click events don’t fire after the call back when I click on a checkbox.
How could this be?
$(document).ready(function () {
f();
});
function LoadingPanelHiding(sender, eventArgs) {
f();
}
function f() {
$('.selectAll').click(function () {
alert('Hello world!');
});
}
Not sure how much this helps since the question is a few months old, but I encountered the same problem and was able to solve it based on the information in this link:
http://blog.aspnet.sk/rostacik/archive/2010/08/05/running-javascript-when-page-loads-with-telerik-controls.aspx
By switching from the $(document).ready() to the Sys.Application.add_load() function, my jquery function is reloaded after each ajax callback: