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

Hide OtherMonthsDay name in radcalender

3 Answers 55 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
anuj
Top achievements
Rank 1
anuj asked on 18 Oct 2012, 06:43 AM
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

3 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 18 Oct 2012, 12:20 PM
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.
0
anuj
Top achievements
Rank 1
answered on 18 Oct 2012, 01:12 PM
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:


0
Vasil
Telerik team
answered on 18 Oct 2012, 02:02 PM
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.
Tags
Calendar
Asked by
anuj
Top achievements
Rank 1
Answers by
Vasil
Telerik team
anuj
Top achievements
Rank 1
Share this question
or