This is a migrated thread and some comments may be shown as answers.

Filter available days

4 Answers 107 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
PPCnSEO
Top achievements
Rank 1
PPCnSEO asked on 29 Nov 2012, 01:12 PM
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?

4 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 03 Dec 2012, 10:52 AM
Hello Mark,

 
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.

Regards,
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">
0
Georgi Krustev
Telerik team
answered on 22 Jan 2013, 08:30 AM
Hello,

 
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.

Regards,
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
Adam
Top achievements
Rank 1
answered on 10 May 2013, 12:49 PM
Check out this demo to disable all days but a specific day of the week, friday (5)    jsbin
Tags
Date/Time Pickers
Asked by
PPCnSEO
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Tim R
Top achievements
Rank 1
Adam
Top achievements
Rank 1
Share this question
or