client event on calendar popup

3 posts, 1 answers
  1. MI87
    MI87 avatar
    27 posts
    Member since:
    Jul 2010

    Posted 12 Oct 2012 Link to this post

    Hello

    I'd like to catch client event when the calendar appears and disappears  (in order to prevent the scheduler autorefresh I implemented...)

    How can I achieve this ?

    Thanks
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 15 Oct 2012 Link to this post

    Hi,

    Try the following JQuery to achieve your scenario.

    JS:
    <script type="text/javascript">
        $(document).ready(function () {
            $(".rsDatePickerActivator").click(function () {
               //Your code here
            });
        });
    </script>

    Hope this helps.

    Regards,
    Princy.
  3. MI87
    MI87 avatar
    27 posts
    Member since:
    Jul 2010

    Posted 15 Oct 2012 Link to this post

    Thanks, that works fine

    I complete your to be functional with Postback :

    $(document).ready(function() {
        $(".rsDatePickerActivator").click(function() {
            myFunction();
        });
        // Setup your partial-postback event handler.
        // This is used to rewire all events since all are 'lost' after partial-postback.
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(requestHandler);
    });
     
    function requestHandler(sender, args) {
        $(".rsDatePickerActivator").click(function() {
            myFunction();
        });
    }
Back to Top