How to set the appointment Selected style?

2 posts, 0 answers
  1. Cooper
    Cooper avatar
    19 posts
    Member since:
    Mar 2014

    Posted 14 Aug 2014 Link to this post

    Telerik Members: 

    Is it possible to set the selected appointment border's style? 

    Thank you 
  2. Stefan
    Stefan avatar
    2891 posts

    Posted 15 Aug 2014 Link to this post

    Hello Cooper,

    Thank you for writing.

    Here is how you can modify the scheduler border:
    void radScheduler1_AppointmentFormatting(object sender, SchedulerAppointmentEventArgs e)
        if (e.AppointmentElement.Selected)
            e.AppointmentElement.UseDefaultPaint = true;
            e.AppointmentElement.BorderColor = Color.Red;
            e.AppointmentElement.BorderBoxStyle = BorderBoxStyle.SingleBorder;
            e.AppointmentElement.BorderWidth = 3;
            e.AppointmentElement.UseDefaultPaint = false;
            e.AppointmentElement.ResetValue(LightVisualElement.BorderColorProperty, ValueResetFlags.Local);
            e.AppointmentElement.ResetValue(LightVisualElement.BorderWidthProperty, ValueResetFlags.Local);
            e.AppointmentElement.ResetValue(LightVisualElement.BorderBoxStyleProperty, ValueResetFlags.Local);

    I hope this helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft R3 2016 release webinar banner
Back to Top