jQWidgets Forums

jQuery UI Widgets Forums Grid How to select multiple rows in code

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • How to select multiple rows in code #113197

    ajcs
    Participant

    When I want to select one row in code I can do this:
    $(this.Selector).jqxGrid({ selectedrowindex: Index });

    and that works fine and the row is highlighted in the grid.

    But I am trying to select multiple rows in code so I try this (where Indexes is an array):
    $(this.Selector).jqxGrid({ selectedrowindexes: Indexes });

    It partly works because those rows are selected when I read back selectedrowindexes but the selection is not highlighted visually in the grid.

    I do have selectionmode=multiplerowsextended

    So why does the multiple selection not show up in the grid? It shows up if I manually select multiple rows using the mouse.

    Thanks

    How to select multiple rows in code #113198

    ajcs
    Participant

    I managed to get this working by using the following multiple times:
    $(this.Selector).jqxGrid({ selectedrowindex: Index });

    How to select multiple rows in code #113207

    Hristo
    Participant

    Hello ajcs,

    I assume that you resolve this case?
    Please, let me know if you have any other questions.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.