jQWidgets Forums

jQuery UI Widgets Forums Grid Group Issues

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Group Issues Posts
  • Group Issues #58445

    DavidSimmons
    Participant

    In my grid, I have ID column that links to a record details screen using the following…

    $(jqxgrid).on(‘rowclick’, function (event) {
    var args = event.args;
    var row = args.rowindex;

    selectedID = $(jqxgrid).jqxGrid(‘getcellvalue’, row, “ID”);
    });

    When you click on the ID column you open the detail screen.

    $(jqxgrid).on(‘cellclick’, function (event) {
    var column = event.args.column;
    var rowindex = event.args.rowindex;
    var columnindex = event.args.columnindex;

    if (column.text == “BidID”) {
    window.open(“<?php echo WEB_ROOT ?>/BidView/BidDetailView.php?id=” + selectedID);
    }

    });

    This works great without grouping any columns it works great. But when you have a column grouped the “showgroupmenuitems: true,” the ID is incorrect for the following code.

    $(jqxgrid).on(‘rowclick’, function (event) {
    var args = event.args;
    var row = args.rowindex;

    selectedID = $(jqxgrid).jqxGrid(‘getcellvalue’, row, “ID”);
    });

    Can you fix this. This major issue at this point…..

    Group Issues #58593

    DavidSimmons
    Participant

    Can anyone help me with this?

    Group Issues #58632

    DavidSimmons
    Participant

    I don’t really understand why there has been no response to this issue. Did I ask an improper question or something? You should be able to click on a grid row and get the correct row, RIGHT? Event in group of rows.

    $(jqxgrid).on(‘rowclick’, function (event) {
    var args = event.args;
    var row = args.rowindex;

    selectedID = $(jqxgrid).jqxGrid(‘getcellvalue’, row, “ID”);
    });

    Please help

    Group Issues #58643

    Peter Stoev
    Keymaster

    hi David,

    There is no issue with this. Example: http://jsfiddle.net/xj7kznb8/. Clicking on a data row displays the correct row index.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.