Change the font Size of RadScheduler Header

15 posts, 0 answers
  1. imran
    imran avatar
    20 posts
    Member since:
    Oct 2010

    Posted 04 Mar 2011 Link to this post

    I want to Bold the RadScheduler Header..
    Please help me on this regard..

    thanks,
    Imran
  2. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    353 posts

    Posted 09 Mar 2011 Link to this post

    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!
  3. dejan
    dejan avatar
    7 posts
    Member since:
    Jul 2018

    Posted 05 Jul 2018 Link to this post

    Can I change font size without new theme?
  4. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 06 Jul 2018 Link to this post

    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.
  5. dejan
    dejan avatar
    7 posts
    Member since:
    Jul 2018

    Posted 06 Jul 2018 in reply to Dimitar Link to this post

    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
  6. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 09 Jul 2018 Link to this post

    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.
  7. dejan
    dejan avatar
    7 posts
    Member since:
    Jul 2018

    Posted 09 Jul 2018 Link to this post

    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
  8. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 10 Jul 2018 Link to this post

    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.
  9. dejan
    dejan avatar
    7 posts
    Member since:
    Jul 2018

    Posted 10 Jul 2018 Link to this post

    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

  10. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 11 Jul 2018 Link to this post

    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.
  11. dejan
    dejan avatar
    7 posts
    Member since:
    Jul 2018

    Posted 11 Jul 2018 Link to this post

    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

     

  12. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 12 Jul 2018 Link to this post

    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.
  13. dejan
    dejan avatar
    7 posts
    Member since:
    Jul 2018

    Posted 12 Jul 2018 Link to this post

    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;

  14. dejan
    dejan avatar
    7 posts
    Member since:
    Jul 2018

    Posted 12 Jul 2018 in reply to dejan Link to this post

    Font font = new Font("time new roman", 15f, System.Drawing.FontStyle.Regular);
  15. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 13 Jul 2018 Link to this post

    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.
Back to Top