jQWidgets Forums

jQuery UI Widgets Forums Grid Checked AND Filtered rows only

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Checked AND Filtered rows only #31810

    gkushner
    Participant

    I am getting an array of visible rows using getdisplayrows. Is there a way to test if the row is selected (has a checkbox checked?)

    var rows = $('#orderGrid').jqxGrid('getdisplayrows');

    As you’ve indicated on other posts, checking a select all, chooses ALL rows, even hidden rows.

    So what I’m looking for is a way to know what is both visible and selected.

    Checked AND Filtered rows only #31816

    Peter Stoev
    Keymaster

    Hi gkushner,

    You can get the bound indexes of the selected rows by using the “getselectedrowindexes” method.

    Example:

    var rowindexes = $('#jqxGrid').jqxGrid('getselectedrowindexes');

    If it is helpful, you can use the “getrowboundindex” to get the bound index of a row by passing a display index.

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

    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.