14 Answers, 1 is accepted
Thank you for writing.
In order to change the header font of the days in the day view, you should to apply the new font in the theme that you are using. You should update the theme with the new fonts for the SchedulerHeaderCell element and apply the new theme to the RadScheduler. Look at the attached screenshot to see what you should to change in the theme.
In case that you have other related questions, feel free to write back.
Regards,
Dobry Zranchev
the Telerik team
You can use the CellFormatting event for this. Detailed inforation is available here: Formatting cells.
I hope this will be useful.
Regards,
Dimitar
Progress Telerik
I tried several times over, but I did not know. With your example I succeeded.
One more question.
How can I click on a date in mountView to open dayView or weekView? Only then can I open a new event
If I understand correctly you want to change the view when the user is adding a new appointment in the MonthView. To achieve this you can use the AppointmentEditDialogShowing and change the view. Here is an example:
private void RadScheduler1_AppointmentEditDialogShowing(object sender, Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs e)
{
if (radScheduler1.ActiveView is SchedulerMonthView)
{
e.Cancel = true;
radScheduler1.ActiveViewType = SchedulerViewType.Week;
}
}
Let me know if I can assist you further.
Dimitar
Progress Telerik
I solved the problem like this
private DateTime selDates;
private void radSchedulerNavigator2_DoubleClick(object sender, EventArgs e)
{
if (this.radScheduler1.ActiveViewType == SchedulerViewType.Month)
{
selDates= SchedulerUIHelper.GetSelectedDates(this.radScheduler1)[0];
System.Windows.MessageBox.Show(selDates.ToString());
radScheduler1.FocusedDate=selDates;
this.radScheduler1.ActiveViewType = SchedulerViewType.Day;
}
}
but, the solution is going on for the current week, and my going is always Monday and the week of the selected date.
for example.
If I select July 29th, Friday, it will go to July 23th Monday.
I do not know how to solve it
Which version are you using? I am asking because the latest version does not have GetSelectedDates method.
Have you tried to set the FocusedDate after setting the ActiveViewType?
I am looking forward to your reply.
Regards,
Dimitar
Progress Telerik
Hi Dimitar
It is work where set after ActiveViewType.
I do not understand why this works because it's more logical to put it before activating View?
I am using vesion 2016
Regard
When the view is changed we are taking into account the start/end of the previous view, not the focused date. Focusing a specific date brings it into the current view.
Do not hesitate to contact us if you have other questions.
Regards,
Dimitar
Progress Telerik
Aha. Ok. Thanks
CellFormatting is not good because it's done after some action. It means putting it in a startup or some other way to change the font into the header
I was able to reproduce this. It is considered an issue which I have logged in our Feedback Portal. You can track its progress, subscribe to status changes and add your comment to it here. I have also updated your Telerik Points.
To workaround this, call the following method when the form is shown:
protected
override
void
OnShown(EventArgs e)
{
base
.OnShown(e);
radScheduler1.SchedulerElement.ViewElement.UpdateCells();
}
Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
Thanks
It is work.
Change font in RadSchedulerNavigator it's my solution. There may be better ways, but this works: Maybe somebody helps
radSchedulerNavigator1.DayViewButton.Font = font;
radSchedulerNavigator1.WeekViewButton.Font = font;
radSchedulerNavigator1.MonthViewButton.Font = font;
radSchedulerNavigator1.NavigateTodayButton.Font = font;
radSchedulerNavigator1.TimelineViewButton.Font = font;
radSchedulerNavigator1.SchedulerNavigatorElement.DateLabel.Font = font;
Thank you for sharing your solution. Do not hesitate to contact us if you have other questions.
Dimitar
Progress Telerik