jQWidgets Forums

jQuery UI Widgets Forums Grid Deletting multiple rows from grid ?

This topic contains 4 replies, has 2 voices, and was last updated by  mallepaddi 11 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Deletting multiple rows from grid ? #31606

    mallepaddi
    Participant

    Hi

    Could you please help me in deleting multiple items selected by checkboxes when “Delete” button / image clicked at header level.

    I have managed to show Delete button at header level, all i need is coding to deleting rows (more than one) and to know what methods / events to fire to complete delete execution?

    One more, deleting one row from grid automatically selecting following row (in my case following row checkbox checked after deleting previous row), how to prevent auto select in delete process ?

    Thanks

    Deletting multiple rows from grid ? #31609

    Peter Stoev
    Keymaster

    Hi mallepaddi,

    The deleterow method accepts an array of IDs as well. If you pass an array of row IDs, it will delete multiple rows.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Deletting multiple rows from grid ? #31610

    mallepaddi
    Participant

    Hi

    Thanks for your reply, Do we need to call any commit / reload methods after deleting rows … ?

    How to prevent selecting next row automatically when a row was deleted.

    Thanks

    Deletting multiple rows from grid ? #31611

    Peter Stoev
    Keymaster

    Hi mallepaddi,

    The process of deleting multiple rows is the same as deleting 1 row. The difference is that when you delete multiple rows, you should pass an array of Row IDs. If you want to change the Grid’s selection, you may use the Grid’s selection API for clearing the selection or selecting a new row.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Deletting multiple rows from grid ? #31612

    mallepaddi
    Participant

    Problem solved by calling $(‘#jqxgrid1’).jqxGrid(‘clearselection’); after every delete action.

    Thanks

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

You must be logged in to reply to this topic.