Current month position

4 posts, 0 answers
  1. Oliver
    Oliver avatar
    263 posts
    Member since:
    Feb 2011

    Posted 13 Feb 2012 Link to this post

    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
  2. Georgi
    Admin
    Georgi avatar
    347 posts

    Posted 16 Feb 2012 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Bibin
    Bibin avatar
    1 posts
    Member since:
    Jun 2015

    Posted 09 Jun 2015 Link to this post

    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

  5. Georgi
    Admin
    Georgi avatar
    347 posts

    Posted 10 Jun 2015 Link to this post

    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
Back to Top