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

selected appointment styling

2 Answers 122 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 10 Apr 2013, 12:09 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Anton
Telerik team
answered on 12 Apr 2013, 01:27 PM
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.
0
John
Top achievements
Rank 1
answered on 12 Apr 2013, 01:32 PM
thanks, that worked.  I'll try the new version when it comes out for the other one.
Tags
Scheduler and Reminder
Asked by
John
Top achievements
Rank 1
Answers by
Anton
Telerik team
John
Top achievements
Rank 1
Share this question
or