Set current month/week/day

3 posts, 0 answers
  1. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 22 Oct 2014 Link to this post

    Is it possible to set the schedule view to current month/week/day, The requirement is to have a button and when user clicks that month

    - if the active view is month and lets say currently user is viewing Dec, on click of the button the view should automatically change to current month Oct
    - same for week and day

    Thanks
    Vikas
      
  2. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 23 Oct 2014 Link to this post

    Hi Vikas,

    In order to achieve that functionality you could handle the Click event of the Button and in it to set the CurrentDate property of the ScheduleView to the desired date:

    void RadButton_Click(object sender, RoutedEventArgs e)
    {
        this.radScheduleView1.CurrentDate = DateTime.Now;
    }

    I hope this will help you.

    Regards,
    Nasko
    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. UI for WPF is Visual Studio 2017 Ready
  4. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 23 Oct 2014 in reply to Nasko Link to this post

    Thanks that works.

    Vikas
Back to Top