Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ajax Control Toolkit Date Picker - Is it possible to not have to select the day?

So I can set the date format on the Calendar Extender to it displays just the month, but you would still have to select the Year, then the Month, then the Day.

I would like to just select the Year, then the Month.

    <cc2:CalendarExtender ID="DateOfReleaseCalendarExtender" runat="server"
        TargetControlID="DateOfReleaseTextBox"
      Format="MMMM yyyy" />    
like image 273
Paul Rowland Avatar asked Dec 29 '25 07:12

Paul Rowland


2 Answers

That is not a built-in feature, no. You'll have to extend it yourself. I would probably hook into the Javascript events--whichever one you think makes sense in your situation.

like image 167
Jon Adams Avatar answered Jan 02 '26 08:01

Jon Adams


This requires patching the CalendarExtender part of the AjaxControlToolkit assembly.

I found a blog post that explains how to do something very similar to what you are trying to do:
Patching the CalendarExtender Control

like image 34
Jose Basilio Avatar answered Jan 02 '26 08:01

Jose Basilio



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!