jQuery UI Widgets Forums Scheduler Follow date select on view change

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Follow date select on view change #99459

    janets
    Participant

    How can I select a date in the Month or WeekView and change to DayView and have it display that day?
    I have tried setting the date in the viewchange but does not seem to work.
    Any assistance would be appreciated.

    Follow date select on view change #99477

    Hristo
    Participant

    Hello janets,

    You could bind to “cellClick” event of the jqxScheduler and you could get from its arguments current date.
    When you are in ‘weekView’ or ‘monthView’ you could switch to ‘dayView’ with the desired day on that way:

    $("#scheduler").jqxScheduler({ 
        view: 'dayView', 
        date: new $.jqx.date(2017, 11, 25) 
      });

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Follow date select on view change #99479

    janets
    Participant

    Hristo,

    I am binding to the cell click to get the SELECTED date with no problem.
    IF the user want to now switch to DayView I was trying to set the date selected above in the viewchange event.
    This did not seem to work.

    Follow date select on view change #99480

    janets
    Participant

    Finally got it working correctly. Thank you!

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

You must be logged in to reply to this topic.