jQuery UI Widgets Forums Editors Calendar change event by clicking to next or previous month

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

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

  • hf
    Participant

    When I click the next or previous arrows to navigate through the months both events change and viewChange are fired. When navigating through years, only the viewChange event is fired.

    Why are both events fired when navigating through months?

    $("#jqxcalendar").jqxCalendar({ width: 220, height: 220, selectionMode: 'range' });
                
                $('#jqxcalendar').on('change viewChange', function (event) {
                    alert(event.type);
                });

    Peter Stoev
    Keymaster

    Hi hf,

    “change” is raised because the selected Day is changed to the next/previous month’s First day. When you change Years, a Date is still not selected and there’s no “change” of the selection. “change” in the selection would happen when you choose the year and the month.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    hf
    Participant

    Hi Peter,

    But when the selectionmode is set to default, only the the viewChange is raised. Why is the selected day then not changed?

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

You must be logged in to reply to this topic.