How to set/reset the display month

4 posts, 0 answers
  1. Kjell
    Kjell avatar
    275 posts
    Member since:
    Jun 2010

    Posted 08 Sep 2010 Link to this post

    How can I programmatically set the current month?

    By default the calender will load the current month, for example right now September.  If a user changes that to say August, I want to change it back to September after the take some action. Basically I just need to reset the cal, the selecteddate was easy but I must be missing the month setting.
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 10 Sep 2010 Link to this post

    Hi Kjell,

    You can define the selected month from the SelectedDate property too. You may consider using the DisplayDate property, in case you want to bring in to view a particular month . Let us know if this is not your case.

    Kind regards,
    Kaloyan
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Kjell
    Kjell avatar
    275 posts
    Member since:
    Jun 2010

    Posted 10 Sep 2010 Link to this post

    Thanks, displaydate let me set the month being displayed.   Now how do I actually just clear the selected date?

    I can't set it to "" so I am just setting it to "datetime.today", but that is not the same as clearing it.  Keep in mind I am in single selection mode so I cant use selecteddates.clear().

  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 14 Sep 2010 Link to this post

    Hi Kjell,

    The SelectedDate is of Nullable<DateTime>  type. This means that you are able to set it a null value, that will clean the current value. Let us know if the tip is working in you use case.

    Best wishes,
    Kaloyan
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top