jQWidgets Forums

jQuery UI Widgets Forums Grid Context Menu on Grid

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  priyamsharma2704 2 years, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Context Menu on Grid #122587

    priyamsharma2704
    Participant

    I have a context menu on the grid with 100 rows. When I scroll down the page to access the rows, the context menu is offset-ed.
    as you can see in the image attached below, when I scroll all the way down and right click on the very last row, the context menu does not appear on that row. Rather it appears randomly above it. However when I select the top rows, the context menu appears right on the selected row. Not sure why this is happening.

    https://ibb.co/DGdYYnD

    Thanks.

    Context Menu on Grid #122591

    ivanpeevski
    Participant

    Hi priyamsharma2704,

    Can you please share a code sample that causes the issue?

    As you can see in the example here, there shouldn’t be any offset no matter what is the number of rows.

    Best regards,
    Ivan Peevski

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

    Context Menu on Grid #122593

    priyamsharma2704
    Participant

    Thanks for the example. This line worked for me.

    contextMenu.jqxMenu(‘open’, parseInt(event.args.originalEvent.clientX) + 5 + scrollLeft, parseInt(event.args.originalEvent.clientY) + 5 + scrollTop);

    Context Menu on Grid #122594

    priyamsharma2704
    Participant

    Thanks for the example. This line worked for me.

    “contextMenu.jqxMenu(‘open’, parseInt(event.args.originalEvent.clientX) + 5 + scrollLeft, parseInt(event.args.originalEvent.clientY) + 5 + scrollTop);”

    Context Menu on Grid #122595

    priyamsharma2704
    Participant

    Thanks for the example. This line worked for me.

    contextMenu.jqxMenu('open', parseInt(event.args.originalEvent.clientX) + 5 + scrollLeft, parseInt(event.args.originalEvent.clientY) + 5 + scrollTop);

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

You must be logged in to reply to this topic.