How Do I Synchronize All Calendar Displays

5 posts, 0 answers
  1. Dean
    Dean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 12 Oct 2011 Link to this post

    Hello,

    I have my RadScheduler configured to display our business week – Monday thru Sunday – but all the other popup date pickers display the standard Sunday thru Saturday display. 

    How do I get these date pickers to synchronize with the FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" I set on the RadScheduler?

    IE:  New Appointment Date Pickers, Today Date Picker, etc.

    Regards,

    Dean

  2. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 12 Oct 2011 Link to this post

    Dean,

    Granted, in my case I'm using a completely bespoke form for add/edit of appointments, but, in my case, I found I had to set the relevant properties manually on all of the appropriate controls.

    -- 
    Stuart
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dean
    Dean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 14 Oct 2011 Link to this post

    Telerik?  Any answer on this?

    This seems like a much needed feature if not. 

    Please let us know.
  5. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 17 Oct 2011 Link to this post

    Hello Dean,

    Yes indeed, it is not implemented yet.

    Here is the code behind that worked at my side:
    protected void RadScheduler1_PreRender(object sender, EventArgs e)
       {
           RadCalendar popupCalendar = RadScheduler1.FindControl("SelectedDateCalendar") as RadCalendar;
           popupCalendar.FirstDayOfWeek = FirstDayOfWeek.Monday;
       }
       
       protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
       {
           if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
           {
               RadCalendar popupCalendar = e.Container.FindControl("SharedCalendar") as RadCalendar;
               popupCalendar.FirstDayOfWeek = FirstDayOfWeek.Monday;
           }
       }

    Hope this will be helpful.

    Greetings,
    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
  6. Dean
    Dean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 17 Oct 2011 Link to this post

    That worked perfectly!

    Thank you very much!

    ~Dean
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017