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

RadCalendar Issues

4 Answers 91 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Mathews
Top achievements
Rank 1
Mathews asked on 26 Jan 2011, 05:40 PM
I have been working with RadCalendar and struck at places and dont know how to proceed . Please help

Requirement
1)I need to  bold some dates using dyanamic binding  in the RadCalendar and so believe need to use DayTemplateSelector to achieve this.
2)if i use daytemplateselector to achieve the above i will need to set the DayButtonStyle="{x:Null}" . In this case the default style seems to be ignored.

How do i achieve custom calendarbutton color styling, custom mouseover effect and also should be able to bold some dates on the Radcalendar dyanamically ?
 

Thanks,
Mathews

4 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 28 Jan 2011, 09:50 AM
Hi Mathews,

The best way to achieve it is to define a default custom ButtonStyle - this means retemplating the control, modify the visual states and so on. You have to set the custom DayTemplate/DayTemplateSelector when a new template for the calendar button is needed - in case of changing the collection in your view models or some other condition. Let us know if you need some more clarifications.

All the best,
Kaloyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Youssef
Top achievements
Rank 1
answered on 12 Apr 2011, 04:44 PM
Hi,

Actually, I'd like these details please (as the 'required parts' documentation section in the RadCalendar chapter is empty).
I need to change the mouse over behaviour too as it colorizes the day-button when the mouse enters it but that button then stays of that color rather than falling back to the default color when the mouse leaves.

Do I need to modify my source (paste the code if that's the case please, no pointer to a twilighted documentation ;)) knowing I already use a style selector to color specific dates dynamically? If a full retemplating is required, could I please get the code?

Thanks in advance!
0
Pana
Telerik team
answered on 18 Apr 2011, 07:36 AM
Hello Youssef,

The RadCalendar's buttons can be styled by creating a modifications for the styles of the ButtonChrome which is used inside. Check the attached solution. I have added all calendar resources as well the ButtonChrome, removed the telerik:StyleManager attached property from the ButtonChrome inside the RadCalendar button and applied new Style. The style is in the buttonchrome.xaml file where the brushes for the selection states have been changed.

Greetings,
Pana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Youssef
Top achievements
Rank 1
answered on 26 Apr 2011, 04:00 PM
Thank you :)
Tags
Calendar
Asked by
Mathews
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Youssef
Top achievements
Rank 1
Pana
Telerik team
Share this question
or