Default "All Day" to false in modal appointment popup when in Month view

2 posts, 0 answers
  1. Jason
    Jason avatar
    13 posts
    Member since:
    Sep 2006

    Posted 19 Oct 2011 Link to this post

    Hi,

    I'm using RadScheduler in Month view, but when creating a new appointment, I'd like the "All Day" checkbox to default to unchecked.

    How can I do this?

    Thanks,
    Jason
  2. Jason
    Jason avatar
    13 posts
    Member since:
    Sep 2006

    Posted 19 Oct 2011 Link to this post

    I figured it out.

    protected void Schedule_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
    {
        if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
        {
            CheckBox allDayCheckbox = (CheckBox)e.Container.FindControl("AllDayEvent");
            allDayCheckbox.Checked = false;
        }
    }
Back to Top