jQuery UI Widgets Forums Grid Multiple Row Selection

This topic contains 3 replies, has 3 voices, and was last updated by  Dimitar 7 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Multiple Row Selection #83928

    satender.siwach
    Participant

    Hi,

    I want to select multiple rows based on value on bindingcomplete event in JQXGrid. My selection mode is ‘checkbox’.
    I know that $(“#JQXGrid”).jqxGrid(‘selectrow’, 2); is used to select single row using rowindex. Is there any way to select multiple rows.

    Multiple Row Selection #83973

    Dimitar
    Participant

    Hi satender.siwach,

    If you wish to select multiple rows programmatically, you will have to call selectrow multiple times. You can also use selectallrows if you wish to select all the grid’s rows.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Multiple Row Selection #91140

    kbeckers
    Participant

    Hi Dimitar,

    If you call selectrow multiple times, only the last row on which you call this function will be selected.
    Is it possible to select multiple rows based on an array of id’s?

    Thanks,
    Regards,
    Kim

    Multiple Row Selection #91154

    Dimitar
    Participant

    Hi Kim,

    • If you set selectionmode: 'multiplerows', you will be able to select multiple rows both by clicking and with the method selectrow.
    • You can try setting the property selectedrowindexes. If you wish to set it dynamically, you should also call the method refresh afterwards.

    Best Regards,
    Dimitar

    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.