jQWidgets Forums

jQuery UI Widgets Forums Grid Select multiple rows

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Select multiple rows #112118

    priyamsharma2704
    Participant

    Hi,
    I have a grid and I want to select multiple rows. I came across this. “var rowindexes = $(‘#LoadCombinationGrid’).jqxGrid(‘getselectedrowindexes’);”.
    But in my grid the selection mode is “multiplecellsextended”, so I can use “getselectedrowindexes”. Is there any other way to get the information for multiple selected rows.

    Select multiple rows #112121

    Martin
    Participant

    Hello priyamsharma2704,

    There is a getselectedcells method of jqxGrid that you could use when the selection mode is “multiplecellsextended”. It returns an array of all selected cells. Each cell in the array is an object with two fields: ‘rowindex’ – the row’s bound index and ‘datafield’ – the column’s datafield.

    You can check the following Example.

    Best Regards,
    Martin Yotov

    jQWidgets team
    https://www.jqwidgets.com

    Select multiple rows #112808

    hoangdv
    Participant

    hello Martin

    I have a grid and I want to display multiple rows when click mouse without using the ctrl key.
    I hope you help me.

    Thanks

    Select multiple rows #112825

    Martin
    Participant

    Hello hoangdv,

    I suppose you mean selecting multiple rows.
    You can do it by setting the selectionmode property of the grid to “multiplerows”.
    Please, take a look at this Example.

    Best Regards,
    Martin

    jQWidgets Team
    https://www.jqwidgets.com/

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

You must be logged in to reply to this topic.