Standalone Collection Editor, Remove Multiple

Standalone Collection Editor, Remove Multiple

jwellmajwellma Posts: 6Questions: 3Answers: 0

Hello, I'm working with a standalone collection (.NET version), and am having trouble removing multiple entries at the same time.

I have it working for individual items, passing the item id, like standaloneEditor.remove('row_1', false).submit().
But if I pass an array of item ids, like standaloneEditor.remove(['row_1', 'row_2', 'row_3'], false).submit(), an error is thrown in DtRequest.cs where it's trying to parse the http["data"] as a dictionary .

Watching the network tab of developer tools, normally the remove request comes through with the submitted id (for a single item). However when I pass an array, only action: remove is sent, with no accompanying data object.

The documentation suggests that what I want to do is entirely possible and I've logged the item ids I'm trying to use and they are correct, and in an array before being sent. Perhaps I'm not submitting the information correctly to remove multiple items at once?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 64,894Questions: 1Answers: 10,747 Site admin
    Answer ✓

    I'm afraid that unlike the DataTables mode, the standalone Editor currently doesn't support the removal of multiple items with a single call.

    I've added it to my list of features to add. I'm afraid that at the moment only a single delete at a time can be done.

    Regards,
    Allan

  • jwellmajwellma Posts: 6Questions: 3Answers: 0

    Thank you so much for the swift response! I can deal with one item at a time for removal for the moment, that's no big deal at all. Thanks for your hard work.

This discussion has been closed.