RadCalender/Special days/Cellpadding & Cell spacing

2 posts, 1 answers
  1. amith
    amith avatar
    7 posts
    Member since:
    Jun 2008

    Posted 26 Jul 2008 Link to this post

    Hi,
    I am using Rad calender-special day view. I am trying to apply some styles. could you please let me know how to add cell padding and cell spacing for the cells of the calender?

    Thank you.
  2. Answer
    Dimo
    Admin
    Dimo avatar
    8472 posts

    Posted 28 Jul 2008 Link to this post

    Hi Amith,

    You can add cell spacing to the Calendar control like this:

    <telerik:RadCalendar DefaultCellSpacing="..." />

    As for the cell padding, you can set it for all cells like this:

    <telerik:RadCalendar DefaultCellPadding="..." />

    or just for a special day's cell like this:

    ASPX

        <SpecialDays>
            <telerik:RadCalendarDay Repeatable="Today" Date="">
                <ItemStyle CssClass="paddedStyle" />
            </telerik:RadCalendarDay>
        </SpecialDays>

    CSS

    table  td.paddedStyle
    {
        padding: ..... ;
    }


    Regards,
    Dimo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top