Border of skin-independent css style not working

2 posts, 1 answers
  1. Paulo
    Paulo avatar
    31 posts
    Member since:
    Oct 2010

    Posted 13 Jan 2012 Link to this post

    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
  2. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Jan 2012 Link to this post

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