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

[Solved] Change Appointment font style

1 Answer 108 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 16 Nov 2009, 03:33 PM
I am trying to change the font size and weight of appointment text shown in scheduler from code behind but it is not taking any effect.

 protected void Page_Init(object sender, EventArgs e)
    {

        List<Appointment> list = (List<Appointment>)this.VacationScheduler.Provider.GetAppointments(this.VacationScheduler);

        foreach (Appointment p in list)
        {
            p.CssClass = "boldy";
            p.Font.Italic = true;
        }
    }

CSS:
-------
 <style type="text/css">
    
    .boldy
    {
        font-style:italic !important;
        font-weight:bold !important;
    }
    
    </style>

It is not taking effect.

Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Nov 2009, 03:52 PM
Hello Joseph,

You should use AppointmentDataBound or AppointmentCreated to set the CssClass property.

Greetings,
Peter
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.
Tags
Scheduler
Asked by
Joseph
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or