DateTimePicker Mode

5 posts, 2 answers
  1. Abdul
    Abdul avatar
    39 posts
    Member since:
    Oct 2010

    Posted 18 Feb 2011 Link to this post

    Hi All,

    Like Silverlight Control is there a way to change input method of DateTimePicker to Month... I want my Calander to show only name of months and years
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Feb 2011 Link to this post

    Hello Abdul,


    Checkout the code library demonstrates how to implement month/year picker using FastNavigation component of DatePicker.
    Month/Year picker

    Hope this helps you.

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Abdul
    Abdul avatar
    39 posts
    Member since:
    Oct 2010

    Posted 21 Feb 2011 Link to this post

    What changes I need to do to show only years ?
  5. Abdul
    Abdul avatar
    39 posts
    Member since:
    Oct 2010

    Posted 21 Feb 2011 Link to this post

    If It gives the following error when added RadAjaxManager to page

    The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)

    Then Please enclose script block in a RadScriptBlock block. 
  6. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 21 Feb 2011 Link to this post

    Hello Abdul,

    To address the error, consider wrapping your javascript code which contains server code blocks inside RadCodeBlock or RadScriptBlock.

    Furthermore, you may be happy to know that with the Q1 2011 release of the AJAX suite (ETA is mid March) we will introduce a separate month/year picker control. The Q1 2011 Beta version is expected at the end of this week, you may want to give it a spin.

    Best,
    Sebastian
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017