Filter available days

5 posts, 0 answers
  1. PPCnSEO
    PPCnSEO avatar
    16 posts
    Member since:
    Nov 2011

    Posted 29 Nov 2012 Link to this post

    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?
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 03 Dec 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Tim R
    Tim R avatar
    131 posts
    Member since:
    Feb 2006

    Posted 18 Jan 2013 Link to this post

    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">
  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 22 Jan 2013 Link to this post

    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!
  6. Adam
    Adam avatar
    1 posts
    Member since:
    Jun 2012

    Posted 10 May 2013 Link to this post

    Check out this demo to disable all days but a specific day of the week, friday (5)    jsbin
Back to Top
Kendo UI is VS 2017 Ready