Apr 12, 2011, 10:52 AM
Drag and Drop from GridPanel to GridPanel and store.save()
Hello good.
I am following the example: https://examples1.ext.net/#/DragDrop...Grid_to_Grid1/
And I have a slight problem when making the save of the store. And Have a <UpdateProxy> in both store, but this is only called when you delete, I mean in the source store, but when I add the store at destination: store.add(record) and then the store.sav () is not UpdateProxy method calls.
(The record is drag and drop correctly)
I am following the example: https://examples1.ext.net/#/DragDrop...Grid_to_Grid1/
And I have a slight problem when making the save of the store. And Have a <UpdateProxy> in both store, but this is only called when you delete, I mean in the source store, but when I add the store at destination: store.add(record) and then the store.sav () is not UpdateProxy method calls.
(The record is drag and drop correctly)
var addRow = function (store, record, ddSource) {
// Search for duplicates
var foundItem = store.findExact('Email', record.data.Email);
// if not found
if (foundItem == -1) {
//Remove Record from the source
ddSource.grid.store.remove(record);
ddSource.grid.store.save(); //Works OK
store.add(record);
store.save(); //Does nothing
}
else {
Ext.Msg.show({
title: "Error",
msg: "Error",
buttons: Ext.Msg.OK,
icon: Ext.Msg.ERROR
});
}