Can I have multiple selected day styles?

2 posts, 0 answers
  1. fernandes fernandes
    fernandes fernandes avatar
    4 posts
    Member since:
    Mar 2005

    Posted 08 Mar Link to this post

    Hi everyone!

    I need to have multiple selected day styles in my radCalendar. This is because a selected date on my calendar can be in on one of three status: approved/submitted and rejected.


    So far, I have set the following style on my aspx page:

    .RadCalendar_Default .rcRow .rcSelected
                background-image: none !important;
                background: #0095c7 !important;
                color: #FFFFFF !important;
                border-color: #000000;
            .RadCalendar_Default .rcRow .rcSelected a
                color: #FFFFFF !important;
            .RadCalendar_Default .rcRow .rcSelectedSubmitted
                background-image: none !important;
                background: #ffff00 !important;
                color: #FFFFFF !important;
                border-color: #000000;
            .RadCalendar_Default .rcRow .rcSelectedSubmitted a
                color: #FFFFFF !important;



    And this is what I have so far on my code behind:


    foreach (DataRow currentChosenDate in dtChosenDates.Rows)
                        selectedChosenDay = new RadDate((DateTime)currentChosenDate["SelectedDate"]);

                        // Besides being selected, this must be marked as a special day...
                        specialDayChosenAndSelectedDay = new RadCalendarDay(calYearview);

                        specialDayChosenAndSelectedDay.Date = (DateTime)currentChosenDate["SelectedDate"];
                        specialDayChosenAndSelectedDay.ToolTip = currentChosenDate["ApprovalStatus"].ToString();
                        specialDayChosenAndSelectedDay.IsSelected = true;

                        specialDayChosenAndSelectedDay.ItemStyle.CssClass = "rcRow rcSelecteSubmitted"; // <--- This is where I'm stuck in....

    But no matter what I do, the calendar always sets the style for these selected days as: .RadCalendar_Default .rcRow .rcSelected

    I'm trying to avoid to use Templates, so could you please shed some light on me?


    Thanks in advance!



  2. Eyup
    Eyup avatar
    2942 posts

    Posted 10 Mar Link to this post

    Hi Fernandes,

    Please run and examine the samples provided in the following post:

    Hope this helps.

    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top