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

Radcalendar display month in one row

2 Answers 142 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Bary
Top achievements
Rank 1
Bary asked on 27 Jun 2014, 05:13 PM
Hello,

I want to configure the calendar, so I can show the days of the month on one single row, I tried the following settings:

<telerik:RadCalendar ID="RadCalendar" runat="server" HideNavigationControls="true" ShowNavigationButtons="false" ShowRowHeaders="false" ShowColumnHeaders="false" ShowFastNavigationButtons="false" SingleViewColumns="31" SingleViewRows="1" FocusedDate="6/1/2014" Skin="MetroTouch" TitleAlign="Left"></telerik:RadCalendar>


These settings display the days for the month "6" in single row, but it only display 24 days not all days, how can I display all days of the month in one single row.

Thanks in advance.
Bary


2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 30 Jun 2014, 05:04 AM
Hi Bary,

The SingleViewColumns property of RadCalendar will display only the number of column mentioned. In your scenario you have mentioned the SingleViewColumns  as 31, so it will display only 31 column. In order to achieve your scenario try to mention a value between 37 to 40 based on your requirement as follows.

ASPX:
<telerik:RadCalendar ID="RadCalendar" runat="server" HideNavigationControls="true"
    ShowNavigationButtons="false" ShowRowHeaders="false" ShowColumnHeaders="false"
    ShowFastNavigationButtons="false" SingleViewColumns="40" Skin="MetroTouch"                    SingleViewRows="1" FocusedDate="6/1/2014" TitleAlign="Left">
</telerik:RadCalendar>

Thanks,
Princy.
0
Bary
Top achievements
Rank 1
answered on 30 Jun 2014, 09:20 AM
Thank you Princy, that helped me, I had another problem, I wanted to hide days from other months, I did it using ShowOtherMonthsDays="False", but the problem was that there were empty cells replacing the days from other months, and I resolve this problem setting:

.rcOtherMonth
    {
        display:none;
    }

That could help somebody else.

Bary
Tags
Calendar
Asked by
Bary
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Bary
Top achievements
Rank 1
Share this question
or