jQuery UI Widgets Forums Grid Multiple row selection issue

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 6 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Multiple row selection issue #103527

    mkrajew
    Participant

    In virtualmode, I am doing a Shift-click to select multiple consecutive rows and when scrolling down as little as 20 rows, the grid loses some of the row selection. See the issue reproduced here:
    http://jsfiddle.net/HackWeight/far90tz5/5/

    – Click row 0
    – Scroll down until row 20 is near the top of the grid
    – Hold down Shift and click on row 20
    – Click the “Get selected indexes” button. Notice that only rows 15-20 are selected. (Scroll up and you can also see visually that rows 0-14 are not selected)

    Multiple row selection issue #103536

    Hristo
    Participant

    Hello mkrajew,

    This becomes from the virtualmode feature.
    Because not all the items are rendered, only a few of them (loaded on demand).
    While you scrolling the old rows disappear (replaced with the new) and there are no rows to select.
    Thank you for the understanding.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Multiple row selection issue #103539

    mkrajew
    Participant

    Thanks for looking into it. It seems to me all this does is frustrate users because they don’t know the technicalities of how the grid works. They just see it as “it unselected things automatically for me when I didn’t tell it to”.

    It seems like virtualmode should logically allow you to select any number of rows (they’ve been selected virtually), then it’s up to me as the programmer to decide how to handle these selections which have not yet been loaded into the grid. I’ll probably need to go to the server to download the data I need if the grid doesn’t have the data loaded, but at least that’s work on my side and the users don’t see it as a bug.

    Right now this is my biggest issue with how the grid works, because it effectively “loses” a user’s selections without telling them. They could easily try to select 100 rows, the grid will let them do it, but only the last 20 or so actually get processed.

    Multiple row selection issue #103551

    Hristo
    Participant

    Hello mkrajew,

    Try to get the first row that the selection begins.
    After that, you could fastly select all rows by selectrow method or I think it is faster with this property – $('#grid').jqxGrid({ selectedrowindexes: arrayOfIndexes })

    Best Regards,
    Hristo Hristov

    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.