PDA

View Full Version : [CLOSED] Drag drop (grid to grid) store.sync() problem



siyahgul
Feb 16, 2015, 1:22 PM

fabricio.murta
Feb 16, 2015, 10:40 PM
Hello, @siyahgul!

I am afraid we have to ask you for a simplified yet working example that reproduces your issue. Your code snippet is not enough for us to reproduce the issue here.

Can you make it?

As for an example to get you started, I can recommend you to look at this one: AJAX Update with SQLDataSource (http://examples2.ext.net/#/GridPanel/Update/SqlDataSource/).

I believe it does pretty much what your are doing there -- yet, this one works.

If in doubt on how to come with a simple runnable example, please refer to these posts:
- Forum Guidelines For Posting New Topics (http://forums.ext.net/showthread.php?3440)
- More information required (http://forums.ext.net/showthread.php?10205)

siyahgul
Feb 17, 2015, 11:38 AM
sync:
update command is working.
delete command is working.
insert command does'nt work. doesn't give an error.

Daniil
Feb 17, 2015, 11:58 AM
Hi @siyahgul,

Please try to set a record's phantom to true for an added record.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.Model-property-phantom

record.phantom = true;