RadCalendar Issues

5 posts, 0 answers
  1. Mathews
    Mathews avatar
    1 posts
    Member since:
    Jan 2011

    Posted 26 Jan 2011 Link to this post

    I have been working with RadCalendar and struck at places and dont know how to proceed . Please help

    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 ?

  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 28 Jan 2011 Link to this post

    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,
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. Youssef
    Youssef avatar
    3 posts
    Member since:
    Nov 2010

    Posted 12 Apr 2011 Link to this post


    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!
  4. Pana
    Pana avatar
    748 posts

    Posted 18 Apr 2011 Link to this post

    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.

    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
  5. Youssef
    Youssef avatar
    3 posts
    Member since:
    Nov 2010

    Posted 26 Apr 2011 Link to this post

    Thank you :)
Back to Top