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

Remove AllDay checkbox

3 Answers 165 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
eran
Top achievements
Rank 1
eran asked on 07 Nov 2010, 09:09 AM
hi telerik,

1.
i am having problem removing the All day checkbox and the date dropdownlist in the advance form. is it possible to remove it from the advance form ?

2.
i am trying to set the working time end at 3pm for saturday. how could i do that ?

Best Regard,
ER AN

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 10 Nov 2010, 05:11 PM
Hi eran,

1. Please try this CssClass to remove the datePickers and timePickers as well as "all day" checkbox:

<style type="text/css">
        .rsTimePickers
        {
            visibility:hidden !important;
        }
</style>

2. You are not able to set the working end time to 3 pm for Saturday only. You can use the DayEndTime property to set the end time for all days in RadScheduler. As a workaround you can disable the timeslots under "3 pm" for Saturday. Please take a look at this KB article for referrence.

Please feel free to ask me if you have further questions.

All the best,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
David
Top achievements
Rank 1
answered on 27 Mar 2012, 09:56 PM
Can you remove only the time pickers? I still want users to pick a start and end date, but they don't need to be so specific as to time of day since they're picking large distances of time, such as startdate: 4/1/12, enddate: 12/31/12.
I see how to remove the All Day checkbox, that's helpful since they don't need that either. But I want to hide those time pickers too. I tried this, but it didn't work:
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
    RadDatePicker startDate = e.Container.FindControl("StartDate") as RadDatePicker;
    if (startDate != null)
    {
        startDate.Visible = false;
    }
}

0
Plamen
Telerik team
answered on 28 Mar 2012, 07:08 AM
Hi David,

You can achieve this with the following code in the FormCreated event:

RadDatePicker startTime = e.Container.FindControl("StartTime") as RadDatePicker;
      startTime.Visible = false;
      RadDatePicker endTime = e.Container.FindControl("EndTime") as RadDatePicker;
      endTime.Visible = false;

Hope this will help you.

All the best,
Plamen Zdravkov
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
Scheduler
Asked by
eran
Top achievements
Rank 1
Answers by
Veronica
Telerik team
David
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or