If I add the event to the RadDatePicker control then obviously it works
But My question is how do I add the event "ClientEvents-OnDateSelected" from the code behind of my master page when the radDatePicker is in a custom control and that control is on the master page?
I tried this but it wont work?
<
telerik:RadDatePicker
runat
=
"server"
ID
=
"MyRadDatePicker"
ClientEvents-OnDateSelected
=
"clientEvent"
/>
But My question is how do I add the event "ClientEvents-OnDateSelected" from the code behind of my master page when the radDatePicker is in a custom control and that control is on the master page?
I tried this but it wont work?
protected
void
Page_Load(
object
sender, EventArgs e)
{
UC1MyCustomControl.FindControl(
"MyRadDatePicker"
).ClientEvents-OnDateSelected=
"clientEvent";
}