jQWidgets Forums

jQuery UI Widgets Forums Grid how to get row content of a grid

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • how to get row content of a grid #27284

    danarj
    Participant

    hello

    I am new to jqwidgets I want to figure out how to get content I mean get all cells of the selected  row when select event triggered.

    $('#jqxgrid').on('rowselect', function (event)
    {

    });

     

    how to get row content of a grid #27296

    Peter Stoev
    Keymaster

    Hi danarj,

    For that purpose, you can use the Grid’s “getrowdata” method.

    var data = $('#jqxGrid').jqxGrid('getrowdata', 0);

    It accepts row’s bound index as parameter.

    The selected row’s bound index is also passed as argument to the ‘rowselect’ event handler.

    Example:

    $('#jqxGrid').on('rowselect', function (event) 
    {
    var args = event.args;
    var row = args.rowindex;
    });

    Best Regards,
    Peter Stoev

    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.