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

SpecialDays in "out of the range"

4 Answers 96 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Saverio Speziali
Top achievements
Rank 1
Saverio Speziali asked on 20 Aug 2008, 10:41 AM

Hi
I am quite new about RadControls..

what I need is to programmatically add a SpecialDay to a DatePiker in order to display it with  a different color (it is only a reminder for the user..) I do that in this way:

RadCalendarDay day1 = new RadCalendarDay();

day1.Date = (DateTime)andataDP.SelectedDate;

day1.ItemStyle.CssClass = "tripCalendarOtherSelection";

ritornoDP.Calendar.SpecialDays.Add(day1);



this works exept for Days outside the MinDate/Max
(they are always rendered as "disabled/dimmed")

can you help?

Thanks..
Saverio

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 20 Aug 2008, 12:39 PM
Hello Saverio Speziali,

Please try to set the custom CSS class to overwrite the default disabled class by making the css  declaration like this:

td.tripCalendarOtherSelection a
{
}

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Saverio Speziali
Top achievements
Rank 1
answered on 20 Aug 2008, 01:54 PM
Hi

my be I am "new" about RadControls..
but the suggestion seem does no work..

it seem that the out of range rendering has a very hi priority and "everythin is superimposed" when the control render out of range days..
Take also in account I want to change the style of just one cell. and leave
all other disabled cells as is..

Can be I have to implement OnDayRender in both server/client sides?

Regards
Saverio
0
Saverio Speziali
Top achievements
Rank 1
answered on 21 Aug 2008, 07:03 AM
Well..

Doing some tests with OnDayRender() client fincion I realized that for "out of range" days the _renderDay structure was "null" (the control itself set to null the _renderDay structure for all the days out of range), so there is no way to have "special days" rendered when they are out of range (unuseful to joke with the style.. of "nothing"..)

Ok.. I can live with it.. but, if I remember well, this is the only way to display "Today" (this can be interesting for all..), so.. can be almost a good idea to have a dedicated "showToday" proprerty

Regards
Saverio
0
Maria Ilieva
Telerik team
answered on 21 Aug 2008, 08:33 AM
Hi Saverio Speziali,

Thank you for your suggestion.

I will forward it to our developers, so they could consider eventual implementing of this property in some of the future release of the product.

As a token of gratitude for your feedback I have also updated your Telerik points.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Calendar
Asked by
Saverio Speziali
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Saverio Speziali
Top achievements
Rank 1
Share this question
or