Is There a Month Year Picker

2 posts, 0 answers
  1. Tim
    Tim avatar
    79 posts
    Member since:
    Feb 2008

    Posted 03 Sep 2008 Link to this post

    I need some suggestions.

    I've got this requirement that the user selects a month and a year.  The user can not select a day, as I must always have the dates start on the first.
    So something like Effective Date = Jan 01, 1997

    I like the date picker, but  I don't want to show the calendar of days.  The user will attempt to pick the 15th, and I'll override their selection to the 1st, and then I'll get a ticket that it didn't pick the user selected value of the 15th.

    I think just a list of Months and list of Years would be great.  Perhaps something with text boxes and the up/down arrows.  I'm shoving this in an InLine Edit of a grid.

    Any thoughts, any controls that I missed to look at?

    Thanks!

    Tim
  2. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 03 Sep 2008 Link to this post

    Hi Tim.

    You can easily achieve this by setting  EnableNavigation="False" in your calendar control, and then "hacking" the skin css file by adding

    display: none

    to the

    .TableLayout_MySkin

    class.

    Not best practice at all, but you end up with a calendar-button of sort that only allows users to select a specific month within a specific year.

    Regards,
    -DJ-
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top