jQWidgets Forums

jQuery UI Widgets Forums Grid How to filter getrows for grid

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Stoev 12 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • How to filter getrows for grid #15798

    ryan paul
    Participant

    How to filter the getrows in grid so that i can only send to the server side code a single column from the getrows but i will send all the rows or all the recordset.

    How to filter getrows for grid #15799

    ryan paul
    Participant

    i am adding data in the grid using the addrow, but in the end i want to get all the records in the first column only, so that i can send in to the server and receive it as a List of string, is there a way to do this?

    How to filter getrows for grid #15805

    Peter Stoev
    Keymaster

    Hi ryan paul,

    “getrows” returns an Array of the displayed rows. If you with to get all strings from the first column, loop through the array returned from “getrows” and build your string.

    For example:

    var rows = $("#grid").jqxGrid('getrows');
    var myCellValues = "";
    for( var i = 0; i < rows.length; i++)
    {
    myCellValues += rows[i][myColumnDataField] + ",";
    }

    myCellValues will store the strings from a column.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.