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

Current month position

3 Answers 104 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 14 Feb 2012, 04:10 AM
I,

I would like to know if it's possible to change the current month position in the display?
I mean, if I have a 3x3 calendar display, I would like to have the current month at the middle position or at the lower left position.

Thank's

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 16 Feb 2012, 04:56 PM
Hello Oliver,

The easiest way to achieve it is changing the DisplayDate property.

For example If you have 3x3 Calendar set like this:

<telerik:RadCalendar x:Name="RadCalendar" Rows="3" Columns="3" ViewsHeaderVisibility="Visible" />

And if you want the current Month to be displayed in the center you can set DisplayDate as follow:

RadCalendar.DisplayDate = DateTime.Today.AddMonths(-4);

Can you please tell us if this works for you?

All the best,
Georgi
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Bibin
Top achievements
Rank 1
answered on 09 Jun 2015, 05:54 AM

I would like to know if it's possible to calculate the current days in a month.i need it for the attendance calculation

thank you

0
Georgi
Telerik team
answered on 10 Jun 2015, 12:06 PM
Hi,

You can use the DateTime.DaysInMonth method in order to get the number of days in specific month.

Nevertheless in case that this is not what you are looking for, please don't hesitate to write us with more details on your scenario.

Hope this would help.

Regards,
Georgi
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar
Asked by
Oliver
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Bibin
Top achievements
Rank 1
Share this question
or