Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Want to perform mass delete on Listgrid

    Hi Isomorphic,
    I want to perform "Mass Delete" similar to "Mass Update" (https://www.smartclient.com/smartgwt...ng_mass_update).
    Here on click of 'delete' button,I want the records to be deleted from UI only .

    I want to send these records to server side for DB deletion, on click of some other button.
    Please suggest.




    #2
    Just set canRemoveRecords: true, in this sample.

    Best regards
    Blama

    Comment


      #3
      Hi Isomorphic,

      Thanks for the instant response.
      I've tried with the following lines.

      grid.setCanRemoveRecords(true);
      grid.setDeferRemoval(true);

      But once I click on "delete icon", the selected record will be "striked out" and not gets deleted from the grid.
      Hereby, I'm attaching the screenshot for your reference.

      Please suggest.
      Attached Files

      Comment


        #4
        Read the docs for that property. You enabled deferRemoval and that’s what it does.

        Comment

        Working...
        X