jQWidgets Forums

jQuery UI Widgets Forums Grid Get selected rows from Filtered Grid

Tagged: 

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Get selected rows from Filtered Grid #54798

    robertjohnson
    Participant

    Hi,

    How to get the selected rows from the filtered grid

    the following sample gets the rows of applied filter
    var rows = $(‘#grid’).jqxGrid(‘getrows’, ‘applyfilters’);

    something like the flowing code to get the selectedrowindexes from the filtered grid
    var rows = $(‘#grid’).jqxGrid(‘selectedrowindexes’, ‘applyfilters’);

    Thanks in advance.

    Get selected rows from Filtered Grid #54801

    ivan
    Participant

    Hi robertjohnson,

    var rows = $(‘#grid’).jqxGrid(‘getrows’, ‘applyfilters’); is invalid function call because ‘getrows’ will return the filtered set of rows even without parameters. Actually the method does not have any parameters. ‘selectedrowindexes’ is an array which contains all selected row indexes – filtered and not. May be you should loop through the Array returned by ‘getrows’ and check whether each row’s bound index is included in the selectedrowindexes array.

    Best Regards,
    Ivan

    jQWidgets Team
    http://www.jqwidgets.com


    robertjohnson
    Participant

    Hi Ivan,

    While looping grid data, it is very slow and unresponsive in sometimes. Can you suggest any solution without looping it would be helpful to solve the issue.
    For 200 or 300 rows itself performance degrade happened

    Thanks in advance


    ivan
    Participant

    Sorry, but I cannot suggest a different option.

    Best Regards,
    Ivan

    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.