jQuery UI Widgets Forums Grid contextMenu event

This topic contains 4 replies, has 3 voices, and was last updated by  Dimitar 9 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • contextMenu event #56261

    fritzfrancis
    Participant

    I was looking at the demo on implementing context menus in the jqxGrid component and I noticed an event registration to the contextmenu event. The registration consist of a function that returns false. What does the contextmenu event do? Also that event is not listed in the API documentation of the jqxGrid component?

    contextMenu event #56263

    Dimitar
    Participant

    Hello fritzfrancis,

    When you return false in the contextmenu event handler, the default browser context menu is disabled and does not appear. This allows a custom context menu to take its place (implemented in other parts of the example).

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    contextMenu event #56300

    fritzfrancis
    Participant

    Is that part of the DOM specification or is that particulat to jqWidget’s API? If it is unique to the jqWidget’s API, then can you include that event in the API documentation for the components that it applies to?

    contextMenu event #56307

    Marc
    Participant

    Hi,

    I also noted this “return false” instruction when implementing a context menu.

    Maybe wrongly, I thought it was standard HTML5 event..

    BRgds…

    contextMenu event #56321

    Dimitar
    Participant

    Hi,

    As Marc has stated, contextmenu is a standard event which has to be “disabled” before the implementation of a custom context menu.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.