How do i set the weekMonthView's first day to monday

3 posts, 0 answers
  1. Cooper
    Cooper avatar
    19 posts
    Member since:
    Mar 2014

    Posted 08 Apr 2014 Link to this post

    Hi telerik!

    I have two problems

    (1) How do i set the weekMonthView's first day to monday ? 

    (2) What trigger event can reload data in radSchedule when i clicked the radSchedulerNavigator1's today button ?
  2. Dimitar
    Admin
    Dimitar avatar
    1545 posts

    Posted 10 Apr 2014 Link to this post

    Hi Cooper,

    Thanks you for writing.

    1. You can set the current culture of the week/month view to a culture where the first day of week is set to monday:
    SchedulerWeekView weekView = new SchedulerWeekView();
    CultureInfo ci = new CultureInfo("en-US");
     
    ci.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Monday;
    weekView.CurrentCulture = ci;
    this.radScheduler1.ActiveView = weekView;

    2. You can subscribe to the Today button click event and execute any custom logic you want in it:
    radSchedulerNavigator1.NavigateTodayButton.Click += NavigateTodayButton_Click;
     
    void NavigateTodayButton_Click(object sender, EventArgs e)
    {
                 
    }

    I hope this will be useful. Should you have further questions, I would be glad to help.
     
    Regards,
    Dimitar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Cooper
    Cooper avatar
    19 posts
    Member since:
    Mar 2014

    Posted 10 Apr 2014 in reply to Dimitar Link to this post

    thank you,   It really helped me.
Back to Top