method of the Grid accepts a DataSource instance as an argument. The _destroyed
collection is an array, so you should not pass it directly. If what you are trying to do is display deleted items while doing Batch editing in the Grid, my advice is to go with the following cleaner approach.
1) Handle the Grid remove
.Events(e => e
2) In the remove event, get the currently deleted item and add it to the second Grid:
item = e.model,
I am using toJSON
method of the model to get only the clear data, without the Model properties.
Here is a sample client-side implementation for your reference:
Telerik by Progress