jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Custom Context Menu for Column Custom Context Menu for Column #78896

    chi
    Participant

    hi Dimitar ,

    i tried but its not working my grid id is “chart-grid” here is what i tried

    ` ready: function() {
    $(“chart-grid .jqx-grid-column-header”).mousedown(function(event) {
    var button = event.which;
    if (button == 3) {
    $(“#Menu”).jqxMenu(‘open’, parseInt(event.pageX) + 5, parseInt(event.pageY) + 5);
    }
    });
    }`

    in reply to: Custom Context Menu for Column Custom Context Menu for Column #78886

    chi
    Participant

    Hi,

    I’ve two jqxgrid on a single html page when i use this ready function() for one grid automatically even the other grid is getting the context menu .
    how to apply context menu for a specific grid header. is there any alternative for this “$(“.jqx-grid-column-header”)” to apply to just one jqxgrid.

    ready: function () {
    $(“.jqx-grid-column-header”).mousedown(function (event) {
    var button = event.which;
    if (button == 3) {
    $(“#Menu”).jqxMenu(‘open’, parseInt(event.pageX) + 5, parseInt(event.pageY) + 5);
    }
    });
    }

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