Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Calendar > How to set background color for selected date and multiple selected date

Not answered How to set background color for selected date and multiple selected date

Feed from this thread
  • Aavadesh avatar

    Posted on Dec 16, 2010 (permalink)

    Dear Sir,

    Could you please help me with the problem as under.

    How can i change color of selected date according to my wish or different colors by c# codes.

    I am having dates from datebase which are the selected dates in your calender control those are displayed and selected correctly but when i selected another date excluding those date the selected dates are disappear

    What I need is the newly selected data and those came from database  should be remain selected.

    Currently we are using the demo version of your control if we get solution of above problem we ill buy 2 to 3 license version of your control


    Thanking you,
    Tabs BI Software Team.


    Reply

  • Kaloyan Kaloyan admin's avatar

    Posted on Dec 20, 2010 (permalink)

    Hello Aavadesh,

    I can suggest you setting the SelectionMode property equal to "Multiple". This approach will help you keeping the last selected dates when a new one is presented. Write us back if this is not your case.

    Best wishes,
    Kaloyan
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF

    Reply

  • Aavadesh avatar

    Posted on Dec 21, 2010 (permalink)

    Hi Kaloyan,

    I have already set my Calendar to multiple Selected Dates Mode, and it is working as per my need.

    But the Problem which was in the first place that i want to change the background of the Selected Dates to different colors as per the Different Dates or the Data attached to those Dates.

    i.e. For Example:- The Dates to be selected are 10th Dec, 15th Dec, and 20th Dec. Then i want the Background of the Selected Dates in the Calendar as 

    10th Dec - Blue Color Background, 15th Dec - Red Color Background, and 20th Dec - Green Color Background.

    Could please guide me and help me solve this Issue and if solution is there then could you please also give the code for the same. 

    Thanks & Regards,

    Aavadesh,

    Tabs BI Software Team.

    Reply

  • Kaloyan Kaloyan admin's avatar

    Posted on Dec 23, 2010 (permalink)

    Hello Aavadesh,

    I have prepared a small app with a custom implementation of the DayTemplate. Follow the code and write us back if it is not helping you.

    All the best,
    Kaloyan
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Calendar > How to set background color for selected date and multiple selected date
Related resources for "How to set background color for selected date and multiple selected date"

WPF Calendar Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]