SpecialDays in "out of the range"

5 posts, 0 answers
  1. Saverio Speziali
    Saverio Speziali avatar
    3 posts
    Member since:
    Aug 2008

    Posted 20 Aug 2008 Link to this post

    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

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 20 Aug 2008 Link to this post

    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.
  3. Saverio Speziali
    Saverio Speziali avatar
    3 posts
    Member since:
    Aug 2008

    Posted 20 Aug 2008 Link to this post

    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
  4. Saverio Speziali
    Saverio Speziali avatar
    3 posts
    Member since:
    Aug 2008

    Posted 21 Aug 2008 Link to this post

    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
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 21 Aug 2008 Link to this post

    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.
Back to Top