DatePicker without Calendar

4 posts, 0 answers
  1. oVan
    oVan avatar
    35 posts
    Member since:
    Apr 2008

    Posted 04 Jun 2008 Link to this post

    Hi everyone. I need a datepicker object where the user can only select a month and a year.

    I thought about hiding the calendar inside the datepicker, leaving only the title with fast navigation buttons. So I setup the control as follows:

    <tk:RadDatePicker ...> 
      <Calendar> 
        <CalendarTableStyle CssClass="cssDisplayNone" /> 
      </Calendar> 
    </tk:RadDatePicker> 

    Upon first rendering this works ok, but as soon as you click any of the navigation buttons, or select a month/year combination, the calendar is drawn again.

    What I want is either a dateinput control that shows a month/year selection, or the title part of the calendar working as described above. A selection box like the quick popup when you click the titles would be fine too.

    What is the best solution to fix/solve this?
    Thanks in advance,
    oVan

  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 04 Jun 2008 Link to this post

    Hello oVan,

    Here is a custom implementation you can use:

    http://www.telerik.com/community/code-library/submission/b311D-mdkhb.aspx

    I hope you find it helpful.

    All the best,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. oVan
    oVan avatar
    35 posts
    Member since:
    Apr 2008

    Posted 04 Jun 2008 Link to this post

    Hi Konstantin, thank you for your quick and helpfull answer.

    Two questions remain on my mind now: can this be done server-side (I doubt this), and will this work with a shared calendar?

    Thanks again!
  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 04 Jun 2008 Link to this post

    Hello oVan,

    Unfortunately you are correct in your assumption - it needs the client-side implementation. As to the shared calendar, you just need to get the shared calendar Client Object instead.

    Sincerely yours,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top