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

DatePicker properties in Adv Edit Form

1 Answer 60 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 13 Mar 2008, 04:44 PM
How do I get a hold of setting properties for the DatePicker Calendar Pop-up that is displayed on the advanced edit form. Specifically, I have a shared calendar that I created on my Master page. I'd like to have the popup calendars on the advanced edit form use that shared calendar.

Right now, the skin for those calendars seems to default to whatever the name of the skin is for the scheduler, except that I cannot set the image path since there isn't a calendar tag.

Any help would be appreciated. Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 17 Mar 2008, 01:23 PM
Hello Philip,

You can handle the FromCreated event and use FindControl to get a reference to the DatePickers and set the properties you want. A sample event handler is provided below. We will try to provide a more intuitive way to handle such scenarios in the next version of RadScheduler.

protected void RadScheduler1_FormCreated(object sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e) 
    RadDatePicker startPicker = e.Container.FindControl("_startDate"as RadDatePicker; 
 
    if (startPicker != null
    { 
        startPicker.Skin = "Black"
    } 
 
    RadDatePicker endPicker = e.Container.FindControl("_endDate"as RadDatePicker; 
 
    if (endPicker != null
    { 
        endPicker.Skin = "Black"
    } 
 
    RadCalendar sharedCalendar = e.Container.FindControl("SharedCalendar"as RadCalendar; 
 
    if (sharedCalendar != null
    { 
        sharedCalendar.Skin = "Black"
    } 




Greetings,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Philip
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Share this question
or