Hello,
I have a problem with destroying multiple records in a store. It will delete them from the store though, but in the headers of the API call to the server it sends this (output from $_REQUEST):
Code:
Array
(
[_dc] => 1340269881512
[records] => id=2
[subject] => Wij hebben aanvullende informatie
[customer] => Fix It
[expire_date] => 2012-06-20 16:35:54
[callback] => Ext.data.JsonP.callback2
)
You can see that only one record is passed to the server. Below I will post the code that I use to remove the records:
Code:
click: function( el ) {
var grid = el.up('gridpanel');
var selection = grid.getSelectionModel().getSelection();
Ext.Msg.confirm('Remove', 'Are you sure u want to remove those items?', function(btn, text) {
if ( btn == 'yes' ) {
// Get store reference
var rappels = Ext.getStore('Rappels');
// Here I tell the store to remove the records in the selection array
rappels.remove(selection);
rappels.save();
}
});
}
Inside the variable selection are the records (model objects) that where selected.
In the gridpanel it is properly deleting the records when calling .remove(). But it's just the API call parameters that are wrong, I can't process the data server sided now.
I hope somebody could help me out here 
Thanks!
Steffen