Empty array means "no dates are enabled". For changing from "some enabled dates" to "enable all dates" we need to set the EnabledDates param to null (there are workarounds).. Which will eventually run this code
//datepicker.js
picker.set("_enable", undefined);
which sets the internal property to undefined. Which is kind of hackie solution (others didn't work), but I didn't noticed any side effects.. Other option is to make all the dates enabled, but this will mess up the dotnet-js synchronization. Note that this code will only run when you set the EnabledDates to null and they were previously set to non-null array.
In release notes I fixed heading for my previous PR. Doesn't belong here, but is just a small update.
Closes #5754
How Has This Been Tested?
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality not to work as expected)
Checklist:
[x] The PR is submitted to the correct branch (master for dev, rel-1.x for maintenance).
[x] My code follows the code style of this project.
Description
Enabled dates in DatePicker.
Few consideration:
which sets the internal property to undefined. Which is kind of hackie solution (others didn't work), but I didn't noticed any side effects.. Other option is to make all the dates enabled, but this will mess up the dotnet-js synchronization. Note that this code will only run when you set the EnabledDates to null and they were previously set to non-null array.
Closes #5754
How Has This Been Tested?
Types of changes
Checklist:
master
for dev,rel-1.x
for maintenance).