selected appointment styling

3 posts, 1 answers
  1. John
    John avatar
    60 posts
    Member since:
    Nov 2006

    Posted 09 Apr 2013 Link to this post

    How do i style a selected appointment in a radscheduler?  I'm having trouble finding the style stuff in the visual style program for this.

    i could do it in code if that's easier also.  all my appointments have a specific type.  the border color changes depending on the type.  when i select one, the border goes black though.  i don't want that to happen.  i want it to leave the border i specified on it.

    Also, how do i get rid of the appointment element inner border?  i made the outer border wider and it makes the inner one wider also.  I tried to hide it by making it the same color as the back color of the appointment element, which does sort of work, but it cuts into the text of the appt that way.

    Thanks
  2. Answer
    Anton
    Admin
    Anton avatar
    167 posts

    Posted 12 Apr 2013 Link to this post

    Hello John,

    Thank you for writing.

    Appointments cannot be customized through theme, so you should do that with code. However, the border of the selected appointment has custom painting and for the time being you cannot turn it off or change it. There is no suitable workaround that can be used for this case. However, in our development version we already added an improvement that will allow you to overcome this limitation and to change the border according to your needs. This improvement will be included in our next release – Q2 2013, which is planned for mid June.

    In regards to the second question, you cannot take the inner border like independent element. It is part of the border primitive element. In this case to achieve the desired behavior you should simply  set the  BorderBoxStyle property of the appointment element to "SingleBorder". You can read more about the BorderPrimitive in this documentation article: http://www.telerik.com/help/winforms/tpf-primitives-borderprimitive.html.

    I hope this information helps.

    Kind regards,
    Anton
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. John
    John avatar
    60 posts
    Member since:
    Nov 2006

    Posted 12 Apr 2013 Link to this post

    thanks, that worked.  I'll try the new version when it comes out for the other one.
Back to Top