RadDatePicker Error

2 posts, 0 answers
  1. Seth
    Seth avatar
    1 posts
    Member since:
    Sep 2012

    Posted 15 Oct 2009 Link to this post

    In the current AJAX build (2009.2.826)

    When using DateFormat if you only want the Month / Year after you make your first selection all others do not for an update.

    Example
    <telerik:RadDatePicker ID="rPubDate" runat="server" DateInput-DateFormat="MM/yyyy" />

    The control only allows me to select the current month / year in this case "10/2009" any other date will not work. If I change the dateformat to MM/d/yyyy or MMM/yyyy it works fine.

     

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 20 Oct 2009 Link to this post

    Hello Seth,

    In order to achieve the desired functionality you should set only DisplayDateFormat property to MM/yyyy and the DateFormat property should not be set.
    Please examine the code snippet bellow and see if it works as expected.
    ASPX:
    <telerik:RadDatePicker ID="rPubDate" runat="server">
               <DateInput DisplayDateFormat="MM/yyyy" runat="server">
               </DateInput>
           </telerik:RadDatePicker>

    I hope this helps.

    Best wishes,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top