jQuery click event not firing after RadAjaxLoadingPanel returns

2 posts, 0 answers
  1. IanIan
    IanIan avatar
    4 posts
    Member since:
    Dec 2004

    Posted 25 Nov 2011 Link to this post

    Hi there,

    I'm handling the client side event 'OnClientHiding'. The event is raised and my code is called. In my code some click events are assigned to some check boxes using jQuery. Unfortunately the click event handlers don't run when I click on the check boxes.

    The jQuery code works perfectly when the page first loads. Its when I try and re-initialize the check boxes after a call back that it doesn't run properly.

    Do you have any idea how to fix this?

    Here is some code...

    $(document).ready(function () {  
        f
    (); 
    }); 
     
     
    function LoadingPanelHiding(sender, eventArgs) { 
         f
    (); 
     
    } 
     
     
    function f() { 
             $
    ('.selectAll').click(function () { 
                 alert
    ('Hello world!'); 
            
    }); 
     
    } 

    Cheers, Ian.
  2. Trustteam
    Trustteam avatar
    13 posts
    Member since:
    Apr 2010

    Posted 08 May 2013 Link to this post

    replace

    $(document).ready(function ()

    with

    Sys.Application.add_load(function ()

    as found here: http://stackoverflow.com/questions/8270215/jquery-not-working-after-call-back-with-radajaxloadingpanel

    works for me. had same problem.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top