I need to be able to filter which days of the week users are able to select on a datepicker.
eg. disable all mondays and tuesdays.
Cant see anything in the docs or demos, is this possible?
If not possible by config, any workarounds?
eg. disable all mondays and tuesdays.
Cant see anything in the docs or demos, is this possible?
If not possible by config, any workarounds?
4 Answers, 1 is accepted
0
Hello Mark,
Georgi Krustev
the Telerik team
Unfortunately, this functionality is not supported. I will suggest you share your requirements/suggestions as a uservoice item. Thus more people can cast their vote for it.
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tim R
Top achievements
Rank 1
answered on 18 Jan 2013, 01:45 PM
Maybe you could try searching the DOM for the relevant data-value attributes and doing something (not sure what) to deactivate the k-link or the container <td>? Maybe remove the "gridcell" role from the <td>? Or do something to the href="#"? I do not know how Kendo is listening for the click on the link (probably an event delegate) or what sort of undesirable side-effects might be caused by enacting any of my shooting-from-the-hip suggestions.
<td role="gridcell">
<a tabIndex="-1" title="Friday, January 04, 2013" class="k-link" href="#" data-value="2013/0/4">
<td role="gridcell">
<a tabIndex="-1" title="Friday, January 04, 2013" class="k-link" href="#" data-value="2013/0/4">
0
Hello,
Georgi Krustev
the Telerik team
The calendar widget listens to td:has(".k-link") selector. Hence you will need to remove this class from the link, which you want to disable. Check this jsBin demo, which shows a simple implementation of this unsupported feature.
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0