Disable selection of multiple days

2 posts, 0 answers
  1. Aakash
    Aakash avatar
    1 posts
    Member since:
    May 2011

    Posted 07 Jul 2011 Link to this post

    How can I disable selection of weekends and selection of particular days when I have multi-select enabled ?

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Jul 2011 Link to this post

    Hello Aakash,

    You can attach OnDateSelected client event and cancel the event based on the date selected.

    javascript:
    function OnDateSelecting(Sender, args)
       {
            var date = args.get_renderDay().get_date();//gets the selected date
           //check for the condition and cancel the event.
        }

    Also take a look in to the following help article for more on this.
    OnDateSelecting.

    Thanks,
    Shinu.
Back to Top