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

Hide empty first row

1 Answer 42 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 06 Sep 2014, 07:58 AM
Hi, I'm using a tag like

<telerik:RadCalendar FirstDayOfWeek="Monday" ShowOtherMonthsDays="false">

to hide other days in the month. However, the space is still taken. so, for a month like September, there is an empty first row. What's the logic behind this. Can an empty first row be hidden?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 09 Sep 2014, 12:44 PM
Hi Julian,

The RadCalendar renders six rows for the dates because for some moths there could be couple of days on the first or the sixth row (check June 2014 for reference).

If some of the rendered rows are removed and the RadCalendar is placed in milti-month view the different months would not be aligned.

In case you would like to modify the number of rows that are rendered for the RadCalendar you would need to use custom logic that calculates if there are dates in all the rendered rows and remove the ones that are not needed.


Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Calendar
Asked by
Julian
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or