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

client event on calendar popup

2 Answers 74 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
MI87
Top achievements
Rank 1
MI87 asked on 12 Oct 2012, 08:12 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 15 Oct 2012, 06:20 AM
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.
0
MI87
Top achievements
Rank 1
answered on 15 Oct 2012, 12:06 PM
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();
    });
}
Tags
Scheduler
Asked by
MI87
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
MI87
Top achievements
Rank 1
Share this question
or