This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
how to disable holidays in calendar widget
Hi @Mvwiellv Nicholls
To disable the holidays in the calendar, first you have the list of holidays with dates. Using the setEnable() method, you can pass those holiday dates and disable by passing false.
https://docs.kony.com/konylibrary/visualizer/viz_widget_prog_guide/Default.htm#Calendar_Methods.htm#setEnabl
Thanks for your response,
I tried this but we are able to disable only particular dates. but remaining days messed up the "enableRangeOfDates" property
Hello @Mvwiellv Nicholls
setEnable() method will work only when the validStartDate() and validEndDate() are not enabled. If you have requirement of date range then on selection of the date, check the date and put a condition that the date fall under a holiday or not. If it is holiday then pass an alert to user to choose another date.
Hi @Mvwiellv Nicholls
Did my response help you? If yes, make sure you click [Select as Best] under the response to close the post.