jQuery UI Widgets Forums Editors Calendar Remove Month navigation links

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  jqxfidqs 9 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Remove Month navigation links #72706

    jqxfidqs
    Participant

    I would like to restrict user to a particular month, each calendar control on my page should be dedicated to a particular month. User is not allowed to navigate to different months. Only program sets Special dates on these controls.

    Please share if there is a way to achieve this. Thanks.

    Remove Month navigation links #72717

    Mariya
    Participant

    Hi jqxfidqs,

    Please take a look at the provided example at: http://jsfiddle.net/nqfhe1ut/
    You should use the ‘setDate’ method, in order to set the needed month. After that you can use the ‘setMinDate’ and ‘setMaxDate’ to show only one month.

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

    Remove Month navigation links #72772

    jqxfidqs
    Participant

    Thank you. In your demo, I am seeing that July 1st is being selected instead of June 1st. Also, I am able to navigate to next month (August) through I am not able pick any date under August.

    $(‘#jqxCalendar ‘).jqxCalendar(‘setDate’, new Date(2015, 6, 1));
    $(‘#jqxCalendar’).jqxCalendar(‘setMinDate’, new Date(2015, 6, 1));
    $(‘#jqxCalendar’).jqxCalendar(‘setMaxDate’, new Date(2015, 6, 31));

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.