jQuery UI Widgets Forums Scheduler Get date/time from Context Menu Open

This topic contains 3 replies, has 4 voices, and was last updated by  svetoslav_borislavov 2 weeks, 1 day ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Get date/time from Context Menu Open #89159

    aoverton07
    Participant

    Is there a way to get the Date/Time of the cell where the context menu is opened? Currently I am only able to use ‘getSelection’ after the context menu is opened to get the date/time of the currently selected cell however, right clicking on the scheduler doesn’t always trigger a cell selection. So, often the date/time returned from ‘getSelection’ is the date/time of the last cell that was selected and not the current cell where the context menu is being opened. This behavior is also present in the context menu demo of the scheduler.

    Get date/time from Context Menu Open #89213

    Hristo
    Participant

    Hello aoverton07,

    Unfortunately, it is not possible on that way.
    You could get the date on cellClick or on editDialogOpen.
    Also, in the ‘dialog’ window will receive data for the current cell.

    If you give more information what you want to achieve, I could give you a better solution (workaround).

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Get date/time from Context Menu Open #122500

    sgsrra
    Participant

    Hi, we are trying to create copy and paste for events with context menu.
    Is there any way for getting the date/hour when the right mouse button is pressed?
    Looking forward to hearing from you soon,
    Regards

    Get date/time from Context Menu Open #122510

    Hi,

    If you are trying to make a copy and paste then you are opening the context menu and it automatically selects the event.
    In the contextMenuItemClick you get menu, appointment, event. In the event is stored all the info about the appointment, so yes you can get from and to properties and every other which you need from the appointment.

    Have a look here: https://codesandbox.io/s/wispy-resonance-4iwn4m?file=/src/App.vue

    Best regards,
    Svetoslav Borislavov

    jQWidgets Team
    https://www.jqwidgets.com/

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

You must be logged in to reply to this topic.