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

add custom change event to date picker with jquery

1 Answer 36 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Code
Top achievements
Rank 1
Code asked on 15 Aug 2013, 12:29 PM
Hi
I have an ASP.Net MasterPage, with a custom control ("uc1') that has a rad date picker in it ( "myCal')

I want to add a jquery change event on my aspx page but the below code wont work


$(document).ready(function(){

 $('#myCal').change(function(){
        alert('Found');
 });
 
});


Thanks for the help

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 16 Aug 2013, 12:04 PM
Hi Code,

You can easily achieve this by using ClientEvents-OnDateSelected client side event of RadDatePicker.

ASPX:
<telerik:RadDatePicker ID="RadDatePicker1" runat="server" ClientEvents-OnDateSelected="OnDateSelected">
</telerik:RadDatePicker>

Thanks,
Shinu.
Tags
Calendar
Asked by
Code
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or