Hide OtherMonthsDay name in radcalender

4 posts, 0 answers
  1. anuj
    anuj avatar
    11 posts
    Member since:
    Oct 2012

    Posted 18 Oct 2012 Link to this post

    Hi

    i am using radcalender. i need to display calender  month view horizontally .
    everything is working fine but problem is that its not hiding the OtherMonthsDay name.

    <telerik:RadCalendar ID="rcJan" runat="server" SingleViewColumns="31"
        SingleViewRows="1" FocusedDate="2012-01-01" ShowOtherMonthsDays="false">
    </telerik:RadCalendar>
    Its showing only 24 days from month.
    Thanks
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 18 Oct 2012 Link to this post

    Hi anuj,

    When a month has 31 days, and the first day is at the end of the week. The calendar will looks like:
    1 day at the first week.
    28 days at the next 4 weeks.
    2 days at the last week.

    Then you need total of 6 weeks to display all the dates. This means that you need 42 days in your row to display the month correctly (6 weeks * 7 days)

    So you have to set SingleViewColumns="42" if the SingleViewRows="1".

    In case of January 2012 it look s bit strange to have whole empty week at the beginning, but if the calendar shows 7 days less, then in some other month it will be not able to display all dates properly. The calnedar is made to work with 6 weeks per page.

    All the best,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. anuj
    anuj avatar
    11 posts
    Member since:
    Oct 2012

    Posted 18 Oct 2012 Link to this post

    Hi Vasil
    Thanks for your reply.

    when i am setting SingleViewColumns="38" its showing full month but again problem is that when i am making it in multi view its look
    awkward.

    It look like this:


  5. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 18 Oct 2012 Link to this post

    Hello anuj,

    In my opinion it look better when each month is in 6 rows by 7 columns(like in this demo), instead of one long row.

    Regards,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top