How do create year picker ASP.NET MVC

Posted by: nvd.bka on 20 July 2020, 6:41 pm EST

  • Posted 20 July 2020, 6:41 pm EST - Updated 29 September 2022, 1:47 am EST

    Hi !

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

    I have 2 choose : DateSelectionMode.Month & DateSelectionMode.Day

    But I need to year picker as picture bellow :

    please help me to do it.

    Many thanks !

  • Posted 21 July 2020, 9:02 pm EST

    Hi,

    For this we need to set the selectionMode to Month and handle the isDroppedDownChanged event and call click() method to open year picker.

    Please refer to the following fiddle demo sample for reference:

    https://jsfiddle.net/mkgupta911/qxo5g6v3/

    Regards,

    Manish Gupta

Need extra support?

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

Learn More

Forum Channels