jQWidgets Forums

jQuery UI Widgets Forums Grid get getrowdata in a nested grid

This topic contains 1 reply, has 2 voices, and was last updated by  Stanislav 7 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • get getrowdata in a nested grid #98432

    manolo8217
    Participant

    I will like to know if there is an option for get the id value from a row in a nested grid, because I just got the idRow
    here is my code:

    if (grid != null) {
    grid.jqxGrid({
    source: ordersSource,
    width: 850,
    height: 350,
    theme: ‘energyblue’,
    autoheight: true,
    columns: [
    { text: ‘ACTIVIDAD’, datafield: ‘activityDescription’, width: “50%”, align: ‘center’ },
    { text: ‘INICIO’, datafield: ‘startDate’, width: “10%”, align: ‘center’ },
    { text: ‘TERMINO’, datafield: ‘endDate’, width: “10%”, align: ‘center’ },
    { text: ‘PROGRESO’, datafield: ‘progress’, width: “10%”, align: ‘center’ },
    { text: ‘ESTATUS’, datafield: ‘status’, width: “10%”, align: ‘center’ },
    { text: ‘EDITAR’, datafield: ‘Edit’, width: “10%”, align: ‘center’, columntype: ‘button’, cellsrenderer: function () {
    return “Edit”;}, buttonclick: function (row) {
    // nested grid rowclick binding
    grid.on(“rowclick”, function (event) {
    var args = event.args;
    var row = event.args.rowindex; alert(row);
    })
    }
    }
    ]
    });
    }

    get getrowdata in a nested grid #98457

    Stanislav
    Participant

    Hello manolo8217,

    Here is a snippet of how to get the Id of a row in the nested grid:

                // bind to rowclick of nested grid.
                grid.on('rowclick', function (event) {
                    var args = event.args;
                    var boundIndex = args.rowindex;
                    var id = grid.jqxGrid('getrowid', boundIndex);
                });

    Best Regards,
    Stanislav

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

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

You must be logged in to reply to this topic.