jQWidgets Forums

jQuery UI Widgets Forums Grid How to select Multiple rows

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • How to select Multiple rows #50664

    Gowri
    Participant

    // initialize jqxGrid
    $(“#jqxgrid”).jqxGrid(
    {
    width: 670,
    height: 350,
    source: dataAdapter,
    selectionmode: multiplerows,
    columns: [
    { text: ‘Id’, datafield: ‘id’, width: 50 },
    { text: ‘First Name’, datafield: ‘firstname’, width: 100 },
    { text: ‘Last Name’, datafield: ‘lastname’, width: 100 },
    { text: ‘Product’, datafield: ‘productname’, width: 180 },
    { text: ‘Quantity’, datafield: ‘quantity’, width: 80, cellsalign: ‘right’ },
    { text: ‘Unit Price’, datafield: ‘price’, width: 90, cellsalign: ‘right’, cellsformat: ‘c2’ },
    { text: ‘Total’, datafield: ‘total’, width: 100, cellsalign: ‘right’, cellsformat: ‘c2’ }
    ]
    });

    $(“#selectrowbutton”).click(function () {
    var index = parseInt($(“#rowindexinput”).val());
    if (!isNaN(index)) {
    $(“#jqxgrid”).jqxGrid(‘selectrow’, 0);
    $(“#jqxgrid”).jqxGrid(‘selectrow’, 20);
    $(“#jqxgrid”).jqxGrid(‘selectrow’, 80);
    $(“#jqxgrid”).jqxGrid(‘selectrow’, 100);
    }
    });

    In the above example i am trying to select multiple rows on button click but its not working as desired,
    how to select multiple rows

    How to select Multiple rows #50672

    Peter Stoev
    Keymaster

    Hi Gowri,

    May be you don’t have such rows or you don’t have such rowindexinput Input tag. I don’t see another problem. If you wish, try the demo: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/rowselection.htm?arctic

    Best Regards,
    Peter Stoev

    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.