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

Border of skin-independent css style not working

1 Answer 65 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 14 Jan 2012, 12:31 AM
Hello.

I have implemented the client-side event OnClientAppointmentDataBound to set property cssClass of RadScheduler appointments:

function AppointmentDataBound(sender, args)
{
    var app = args.get_appointment();
    if (app.get_attributes().getAttribute("RegisteredMembers") != "")
    {
        app.set_cssClass("rsCategoryYellow");
    }
}

If the custom attribute "RegisteredMembers" is not empty, property cssClass is set accordingly.
The problem is that, differently from the RadScheduler screen shot displayed on page http://www.telerik.com/help/aspnet-ajax/scheduler-appearance-setting-appointment-style.html, the border of the appointments are not set to yellow; only the background of the appointments are (see attachment).

What am I missing?

Thank you.
Paulo

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 17 Jan 2012, 02:10 PM
Hello Paulo,

To set the border color, please use the following code:

app.set_borderColor("red");

Also, make sure you set AppointmentStyleMode="Default" for RadScheduler.


Greetings,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Scheduler
Asked by
Paulo
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or