Change RadCalendar month on RadSchedule Navigation click

28 posts, 1 answers
  1. yesaya handoyo
    yesaya handoyo avatar
    10 posts
    Member since:
    Jan 2010

    Posted 27 Jan 2010 Link to this post

    HI all,i want to ask..I'm trying to change RadCalendar month title on RadSchedulerNavigation NavigateBackwards/NavigateForwards click..Suppose i'm using the Navigate buttons to change date,if the selected date on the RadScheduler was the other month,then the RadCalendar month will be the same with the RadScheduler..I've managed to change date..Thanks a lot..
  2. Answer
    Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 28 Jan 2010 Link to this post

    Hello yesaya handoyo,

    As I understand you want to synchronize RadCalendar and RadSchedulerNavigator.
    You should subscribe to NavigateBackwardsClick and NavigateForwardsClick events and you can add the following code:

    this.radCalendar1.FocusedDate = this.radScheduler1.ActiveView.StartDate;

    This code takes the StartDate of the active view and sets it to the FocusedDate of the calendar. RadScheduler navigator is related to RadScheduler. Feel free to ask additional questions.

    Kind regards,
    Dobry
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. yesaya handoyo
    yesaya handoyo avatar
    10 posts
    Member since:
    Jan 2010

    Posted 28 Jan 2010 Link to this post

    Thanks,it works..I want to ask again.. Are there any examples of insert appoinment schedule into database and retrieve it?I'm using winforms..Thanks a lot for the help...
  5. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 28 Jan 2010 Link to this post

    Hello yesaya handoyo,

    Thank you for contacting us. Please look at the demo examples of RadScheduler and in particular see the Binding example. If you have additional question feel free to ask.

    Sincerely yours,
    Dobry
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Anouar
    Anouar avatar
    7 posts
    Member since:
    Feb 2013

    Posted 04 Nov 2013 Link to this post

    Hello Support,

    I try to focus the date of my RadScheduler (Timeline view) on the time of the current moment but when I use the code below, the viewable area displayed start at the correct day but at 0:00am... at any hour of the day.
    Can you help me ? Thanks in advance.

    this.RadScheduler.FocusedDate = DateTime.Now;
  7. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 07 Nov 2013 Link to this post

    Hello Anouar,

    Thank you for contacting Telerik Support.

    It is necessary to adjust SchedulerTimelineView.StartDate Hour and Minutes part to change the starting hour/minutes of the day:
    DateTime focusedDate = DateTime.Now;
    radScheduler1.FocusedDate = focusedDate;
    radScheduler1.ActiveViewType = SchedulerViewType.Timeline;
    SchedulerTimelineView timelineview = radScheduler1.GetTimelineView();
    timelineview.ShowTimescale(Timescales.Hours);
    DateTime startDate = timelineview.StartDate.Date;
    timelineview.StartDate = startDate.AddHours(focusedDate.Hour);
    //timelineview.StartDate = startDate.AddMinutes(focusedDate.Minute);//optional

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. Anouar
    Anouar avatar
    7 posts
    Member since:
    Feb 2013

    Posted 11 Nov 2013 Link to this post

    Hi support,

    Thanks a lot, it's work.

    Is there a way to select a timeslote on the timeline view ?

    Regards
  9. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 14 Nov 2013 Link to this post

    Hello Anouar,

    Thank you for writing.

    You can specify the DisplayedCellsCount property of SchedulerTimescale to determine how many hour slots will be displayed:
    DateTime focusedDate = DateTime.Now;
    int startHour = focusedDate.Hour;
    int endHour = startHour + 6;
     
    radScheduler1.FocusedDate = focusedDate;
    radScheduler1.ActiveViewType = SchedulerViewType.Timeline;
    SchedulerTimelineView timelineview = radScheduler1.GetTimelineView();
    timelineview.ShowTimescale(Timescales.Hours);
    DateTime startDate = timelineview.StartDate.Date;
    timelineview.StartDate = startDate.AddHours(startHour);
     
    SchedulerTimescale timescale = this.radScheduler1.GetTimelineView().GetScaling();
    timescale.DisplayedCellsCount = endHour - startHour;

    I hope this information helps. Please do not hesitate to contact us if you have any additional questions.

    Regards,
    Desislava
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  10. Aneta
    Aneta avatar
    3 posts
    Member since:
    Feb 2013

    Posted 17 Jan 2015 Link to this post

    this.scheduleCalendar.FocusedDate = this.StartDate;
    works like a charm but how can i handle event when "Today" is clicked? scenario:
    1. user has opened the form
    2. user did not changed anything but calendar (few months backwards)
    3. user clicks "Today".
    scheduler does not change "start date" cause he does not have to (i could handle "property changed" event..). i did not see event raised on this "today" button click. and i would like to set a calendar focusedDate to - just like a scheduler does.
  11. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 21 Jan 2015 Link to this post

    Hello Aneta,

    Thank you for writing.

    You can use the RadSchedulerNavigator.NavigateTodayButton.Click event and perform the desired logic.
    public Form1()
    {
        InitializeComponent();
     
        this.radSchedulerNavigator1.NavigateTodayButton.Click+=NavigateTodayButton_Click;
    }
     
    private void NavigateTodayButton_Click(object sender, EventArgs e)
    {
        //your code here
    }

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    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.

     
  12. Aneta
    Aneta avatar
    3 posts
    Member since:
    Feb 2013

    Posted 22 Jan 2015 Link to this post

    Oh my.. i'm sure that i was looking there! :)

    Thank You very much for Your patience.
  13. Marius
    Marius avatar
    9 posts
    Member since:
    Dec 2014

    Posted 18 Feb 2015 Link to this post

    Sorry, I know this is an old post, but i had similar problems, and i still have 2 problems. 
    I customized the interaction between the radcalander and the radscheduler, and my only problem is that on the click/change of the radcalander, i want the focuseddate on the radscheduler to be highlighted as selected or have a different color/background in the
    Month view. I have searched everywhere, but can not find a soluion

    Regards
  14. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 23 Feb 2015 Link to this post

    Hello Marius,

    Thank you for writing.

    In order to synchronize RadCalendar and RadScheduler, you can use the RadCalendar's Navigated or ViewChanged event and set the RadScheduler.FocusedDate property to RadCalendar.CalendarElement.CalendarVisualElement.View.ViewStartDate. Thus, the active month view in the scheduler will contain the same month as the one in the calendar.

    I hope this information helps. Should you have further questions, I would be glad to help.
     
    Regards,
    Dess
    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.

     
  15. Kevin
    Kevin avatar
    15 posts
    Member since:
    Oct 2014

    Posted 25 Mar 2015 in reply to Dess Link to this post

    Is there any way I can see an example of this?  I have a radcalender and a radscheduler on my page and I am trying to synchronize the two so that when the month is changed on the calendar, it is automatically changed on the scheduler.  It seems like these Navigated and ViewChanged events might be exactly what I need, but I don't understand how to access them.  Ideally what I would like is to be able to fire off a method in the c# code behind that sets the schedulers selected date to the calendars focused date whenever the calendars month is changed.  Thanks for any help.
  16. Kevin
    Kevin avatar
    15 posts
    Member since:
    Oct 2014

    Posted 25 Mar 2015 in reply to Kevin Link to this post

    Gah!  Sorry, never mind.  I was able to get the functionality I needed with OnDefaultViewChanged on the radcalendar.
  17. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 30 Mar 2015 Link to this post

    Hello Kevin,

    Thank you for writing.

    I am glad that you have found a suitable solution for your specific case. However, I am pasting the code snippet here in order the community to benefit from it:
    private void Form1_Load(object sender, EventArgs e)
    {
        this.radCalendar1.ViewChanged += radCalendar1_ViewChanged;
        this.radCalendar1.Navigated += radCalendar1_Navigated;
    }
     
    private void radCalendar1_Navigated(object sender, Telerik.WinControls.UI.CalendarNavigatedEventArgs e)
    {
        this.radScheduler1.FocusedDate = this.radCalendar1.CalendarElement.View.ViewStartDate;
    }
     
    private void radCalendar1_ViewChanged(object sender, EventArgs e)
    {
        this.radScheduler1.FocusedDate = this.radCalendar1.CalendarElement.View.ViewStartDate;
    }

    I hope this information helps. Should you have further questions, I would be glad to help.
     
    Regards,
    Dess
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  18. Shelly
    Shelly avatar
    4 posts
    Member since:
    Jan 2016

    Posted 06 Jan Link to this post

    I have a page that has two radSchedulers on it. I'm wondering if you can sync the two schedulers? For example, if the radScheduler1 is on Monday I want radScheduler2 to also show Mondays data, or if I change one the other reflects the change.
  19. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 07 Jan Link to this post

    Hello Shelly,

    Thank you for writing.

    There is no automatic synchronization between two RadScheduler controls. You should handle the changes in the ActiveView and update the other one respectively. Here is demonstrated a sample approach for start date synchronization. You can follow a similar approach for all of the desired properties:
    public Form1()
    {
        InitializeComponent();
     
        this.radScheduler1.ActiveView.PropertyChanged += ActiveView_PropertyChanged;
    }
     
    private void ActiveView_PropertyChanged(object sender, PropertyChangedEventArgs e)
    {
        if (e.PropertyName == "StartDate")
        {
            this.radScheduler2.ActiveView.StartDate = this.radScheduler1.ActiveView.StartDate;
        }
    }


    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  20. Shelly
    Shelly avatar
    4 posts
    Member since:
    Jan 2016

    Posted 07 Jan in reply to Dess Link to this post

    Dess,

    Thank you so much for your response. I will try this to see what I can do.

    Shelly

  21. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 08 Jan Link to this post

    Hello Shelly,

    Thank you for writing back. 

    If you are experiencing any further difficulties, I would be glad to help.

    Regards,
    Dess
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  22. Shelly
    Shelly avatar
    4 posts
    Member since:
    Jan 2016

    Posted 13 Jan in reply to Dess Link to this post

    Dess,

    Thank you for helping me to sync my two radschedulers. I do have one other issue that I am not able to figure out. In my Radscheduler I have the dropdown arrow for the popup calendar. When you select a date from the calendar I want it to change the Radscheduler to that date. It is not working for me. Can you please give me some advice on how to make it work? I have attached a document that includes my code and an image of the dropdown calendar.

    Thank you,

    Shelly

  23. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 18 Jan Link to this post

    Hello Shelly,

    Thank you for writing back. 

    I would like to note that this forum is related to Telerik UI for WinForms suite. However, the provided screenshot indicates that you do not use WinForms. Feel free to post your question in the relevant forum: http://www.telerik.com/forums

    Thank you for your understanding.

    Regards,
    Dess
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  24. Chandz
    Chandz avatar
    7 posts
    Member since:
    Feb 2016

    Posted 03 Feb Link to this post

    Hello Telerik team,

     I have a Radscheduler and an individual button, in a web form in my aspx page(c# and Asp.net).

    when in week view of the scheduler, it displays the first week (i.e)  jan 3 2016 sunday to jan 9 2016 saturday,

    i want to view the next week on button click (i.e)  jan 10 2016 sunday to jan 16 2016 saturday,

    telerik has dayview, weekview, monthview, agendaview and timelineview but not nextweekview..

    Googling does not help me in this case.

     

    Thanks in advance..

    Hope you people reply a bit faster.
  25. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 03 Feb Link to this post

    Hello Chandz,

    Thank you for writing.

    I would like to note that this forum is related to the Telerik UI for WinForms suite. However, your question seems to be connected with the ASP.NET product. Feel free to post your question in the relevant forum: http://www.telerik.com/forums

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  26. Chandz
    Chandz avatar
    7 posts
    Member since:
    Feb 2016

    Posted 03 Feb in reply to Dess Link to this post

    Hey Dess,

     

    Thanks for your reply.

    But it takes too long to get a solution from Telerik UI for WinForms suite.

    Is there Any ways that u can help me solve this issue its an emergency..

     

     

    Thanx Again dess.

    will be more thankful and grateful if u help me solve this ASAP!!..

  27. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 04 Feb Link to this post

    Hello Chandz,

    Thank you for writing back. 

    According to the provided information in your initial post, it seems that you do not use the UI for WinForms suite, but ASP.NET. Hence, I kindly ask you to post your question in the relevant forum where your question will be handled by the appropriate community. If you have any inquiries regarding RadScheduler in the Telerik UI for Winforms suite, please let me know.

    As to the response time, you can refer to the Support Plans for DevTools.

    Thank you for your understanding.

    Regards,
    Dess
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  28. Karthik
    Karthik avatar
    10 posts
    Member since:
    Apr 2016

    Posted 03 Jun Link to this post

    Hello,

    Struggling to get the selected date from Navigation header when we click on that.

    And in the same way when i click Previous(Back) and Tomorrow(front) Arrow key, need to get the details, please help me to get it resolve.

    Attached an screenshot for your reference.

  29. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 07 Jun Link to this post

    Hello Karthik,

    Thank you for writing. 

    According to the provided screenshot, it seems that you use RadScheduleView from the WPF suite. However, this forum is related to WinForms. Feel free to post your question in the relevant forum: http://www.telerik.com/forums

    Thank you for your understanding.

    Regards,
    Dess
    Telerik
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top
UI for WinForms is Visual Studio 2017 Ready