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

Server tags in OnDateSelected event of RadDatePicker

3 Answers 74 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Ritesh
Top achievements
Rank 1
Ritesh asked on 23 Dec 2008, 04:45 PM
Hi,
I am trying to define a RadDatePicker as shown below:

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 24 Dec 2008, 10:30 AM
Hello Ritesh,

You can set the OnDateSelected property at runtime. Then it will work.

By the way, RadControls for ASP.NET AJAX do not have a RadControlsDir property.

Sincerely yours,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mahtab
Top achievements
Rank 1
answered on 08 Nov 2012, 08:48 AM
Can u please provide the syntax to set the OnDateSelected property at runtime?
n how to pass anothercontrol.clientID as parameter to OnDateSelected property from runtime.

Its an urgent need, please help as soon as possible.
0
Vasil
Telerik team
answered on 13 Nov 2012, 06:42 AM
Hi Mahtab,

C# code that should work for attaching the OnDateSelected dynamically:

protected void Page_Load(object sender, EventArgs e)
{
    RadDatePicker1.ClientEvents.OnDateSelected = String.Format("OnDateSelected_{0}", RadDatePicker1.ClientID);
}


Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Calendar
Asked by
Ritesh
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Mahtab
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or