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

Change the font Size of RadScheduler Header

14 Answers 234 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
imran
Top achievements
Rank 1
imran asked on 04 Mar 2011, 06:17 AM
I want to Bold the RadScheduler Header..
Please help me on this regard..

thanks,
Imran

14 Answers, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 09 Mar 2011, 02:49 PM
Hello imran,

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
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
dejan
Top achievements
Rank 1
answered on 05 Jul 2018, 11:05 PM
Can I change font size without new theme?
0
Dimitar
Telerik team
answered on 06 Jul 2018, 07:04 AM
Hello Dejan,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
dejan
Top achievements
Rank 1
answered on 06 Jul 2018, 10:24 AM
Thank you Dimitar.
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
0
Dimitar
Telerik team
answered on 09 Jul 2018, 06:34 AM
Hello Dejan,

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.
 
Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
dejan
Top achievements
Rank 1
answered on 09 Jul 2018, 12:33 PM
Thank you Dimitar. 
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
0
Dimitar
Telerik team
answered on 10 Jul 2018, 09:10 AM
Hi Dejan,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
dejan
Top achievements
Rank 1
answered on 10 Jul 2018, 05:10 PM

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

0
Dimitar
Telerik team
answered on 11 Jul 2018, 07:43 AM
Hi Dejan,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
dejan
Top achievements
Rank 1
answered on 11 Jul 2018, 11:40 PM

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

 

0
Dimitar
Telerik team
answered on 12 Jul 2018, 07:53 AM
Hello Dejan,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
dejan
Top achievements
Rank 1
answered on 12 Jul 2018, 11:27 AM

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;

0
dejan
Top achievements
Rank 1
answered on 12 Jul 2018, 11:33 AM
[quote]Font font = new Font("time new roman", 15f, System.Drawing.FontStyle.Regular);[/quote]
0
Dimitar
Telerik team
answered on 13 Jul 2018, 09:10 AM
Hello Dejan,

Thank you for sharing your solution. Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
imran
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
dejan
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or