27 Answers, 1 is accepted
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.
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.
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;
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
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 >>
Thanks a lot, it's work.
Is there a way to select a timeslote on the timeline view ?
Regards
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
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 >>
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.
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.
Thank You very much for Your patience.
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
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.
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.
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.
Dess
Telerik
See What's Next in App Development. Register for TelerikNEXT.
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.
Dess
Telerik
Dess,
Thank you so much for your response. I will try this to see what I can do.
Shelly
Thank you for writing back.
If you are experiencing any further difficulties, I would be glad to help.
Regards,
Dess
Telerik
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
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
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.
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.
Dess
Telerik
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!!..
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
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.
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