About How do create year picker ASP.NET MVC

Posted by: sidubutt55 on 23 November 2021, 2:11 am EST

  • Posted 23 November 2021, 2:11 am EST

    Someone's message.
    Hi !

    I using C1 in ASP.NET MVC. When I using InputDate.

    I have 2 choose : DateSelectionMode.Month & DateSelectionMode.Day
  • Marked as Answer

    Replied 25 November 2021, 5:59 pm EST

    Hello,

    Displaying only year picker in InputDate control is not possible as this is a design behavior of the control. However, as a workaround, if you wish to only render years in the dropdown list, you may use ComboBox or InputNumber control to perform the same.

    Please refer to the sample below.
    InputControl.zip

    Regards
    Dushyant Sharma
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels