This is a migrated thread and some comments may be shown as answers.

Change RadCalendar month on RadSchedule Navigation click

27 Answers 847 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Yesaya
Top achievements
Rank 1
Yesaya asked on 28 Jan 2010, 03:35 AM
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..

27 Answers, 1 is accepted

Sort by
0
Accepted
Dobry Zranchev
Telerik team
answered on 28 Jan 2010, 08:34 AM
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.
0
Yesaya
Top achievements
Rank 1
answered on 28 Jan 2010, 08:56 AM
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...
0
Dobry Zranchev
Telerik team
answered on 28 Jan 2010, 01:03 PM
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.
0
Anouar
Top achievements
Rank 1
answered on 04 Nov 2013, 11:35 PM
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;
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Nov 2013, 01:43 PM
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 >>
0
Anouar
Top achievements
Rank 1
answered on 11 Nov 2013, 11:45 PM
Hi support,

Thanks a lot, it's work.

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

Regards
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 Nov 2013, 07:33 PM
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 >>
0
Aneta
Top achievements
Rank 1
answered on 17 Jan 2015, 10:12 PM
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.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Jan 2015, 03:21 PM
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.

 
0
Aneta
Top achievements
Rank 1
answered on 22 Jan 2015, 03:21 PM
Oh my.. i'm sure that i was looking there! :)

Thank You very much for Your patience.
0
Marius
Top achievements
Rank 1
answered on 18 Feb 2015, 11:04 AM
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
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 23 Feb 2015, 07:43 AM
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.

 
0
Kevin
Top achievements
Rank 1
answered on 25 Mar 2015, 07:39 PM
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.
0
Kevin
Top achievements
Rank 1
answered on 25 Mar 2015, 07:48 PM
Gah!  Sorry, never mind.  I was able to get the functionality I needed with OnDefaultViewChanged on the radcalendar.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 30 Mar 2015, 11:04 AM
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.

 
0
Shelly
Top achievements
Rank 1
answered on 06 Jan 2016, 06:34 PM
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.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Jan 2016, 09:48 AM
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
0
Shelly
Top achievements
Rank 1
answered on 07 Jan 2016, 01:44 PM

Dess,

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

Shelly

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 Jan 2016, 08:09 AM
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
0
Shelly
Top achievements
Rank 1
answered on 13 Jan 2016, 01:41 PM

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

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Jan 2016, 07:49 AM
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
0
Chandz
Top achievements
Rank 2
answered on 03 Feb 2016, 02:12 PM
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.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Feb 2016, 02:22 PM
Hello ,

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
0
Chandz
Top achievements
Rank 2
answered on 03 Feb 2016, 04:41 PM

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!!..

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 04 Feb 2016, 09:27 AM
Hello ,

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
0
Karthik
Top achievements
Rank 1
answered on 03 Jun 2016, 05:11 AM

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.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Jun 2016, 12:40 PM
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.
Tags
Scheduler and Reminder
Asked by
Yesaya
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Yesaya
Top achievements
Rank 1
Anouar
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Aneta
Top achievements
Rank 1
Marius
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Shelly
Top achievements
Rank 1
Chandz
Top achievements
Rank 2
Karthik
Top achievements
Rank 1
Share this question
or