jQuery UI Widgets Forums Grid Grid row checkbox selection

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Grid row checkbox selection #66761

    assaf.frank123
    Participant

    Hi,

    I have a grid with checkbox selection mode.
    When the grid is loaded I wish to select many relevant rows according to my data.
    The grid can contain many rows (over 2000) and if I wish to select only part of them (lets say 1000)
    I perform a loop over the rows(after the table is loaded) and execute the ‘selectrow’ method for the relevant rows.

    This is very costly when I have many rows and just the loop of selecting can take 15 seconds.

    When all need to be selected I use ‘selectallrows’ and this is done quickly.

    Any way to tell the grid if each row needs to be selected upon loading without looping over all the rows and performing it explicitly?

    Thanks

    Grid row checkbox selection #66765

    Dimitar
    Participant

    Hi assaf.frank123,

    You can set the property selectedrowindexes to select rows initially without calling selectrow.

    Best Regards,
    Dimitar

    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.