ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Datepicker - Mark Holidays
Title:
B
I
{code}
?
Is it possible to Mark Holidays in Datepicker ? (not only on Saturday and Sunday, but also on other holidays, like Christmas, Easter, etc.)
Save Changes
Cancel
Meccanica Rossi
asked at 15 Jan 2018
it's possible, but we don't have a feature like this implemented atm. you would need a js function that will tell you if this date is a holiday, and modify awem.js to add a css class to holiday days
at 15 Jan 2018
Omu
I see rederDaysTable function, I know how mark a single holidays day, please a question : I have the list of holidays on the database, what is the best way to get a list of dates from the server to be used in the rederDaysTable function ?
at 16 Jan 2018
Meccanica Rossi
you need a `function isHoliday(date)` and call it inside `function renderDay(d)` and the css class for true, how you implement this function is up to you, you could hardcode the holidays in the function, unless you have different holidays depending on the user
at 16 Jan 2018
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK