Hi,

I've got two grids. I drag from grid 'one' to grid 'two'.
In the 'beforedrop' event for grid 'two', I alter the data.records slightly (adding two fields with default values as these don't exist in grid 'one').
Grid 'two' show the new dragged record. So drag and drop is working.

However, I want to save this record to my database. So I added to the 'drop' event for grid 'two', code to save this record. Unfortunately, I've tried several commands, but none is working properly.
Store is not synchronized (dirty property not updated or store doesn't contain new record, or grid show the just dropped record twice):
PHP Code:
// Shows twice in grid:
drop: function(nodedatadropRecdropPosition) {
    
this.store.add({
        
members_iddata.records[0].get('id')
        ,
teams_iddata.records[0].get('teams_id')
        ,
fullnamedata.records[0].get('fullname')
        ,
sortorderdata.records[0].get('sortorder')
        ,
is_team_captain0
    
});
    
this.store.sync();
}

// Record saved to database, but store not synchronized, so updates to this record do nothing (no proxy update or change event is fired)
drop: function(nodedatadropRecdropPosition) {
    var 
member Ext.ModelManager.create({
        
members_iddata.records[0].get('id')
        ,
teams_iddata.records[0].get('teams_id')
        ,
fullnamedata.records[0].get('fullname')
        ,
sortorderdata.records[0].get('sortorder')
        ,
is_team_captain0
        
,id0
        
,number_subteam''
    
}, 'EX.model.Player');
    
member.save();

    
// this sync command does nothing!
    
this.store.sync();

My Model:
PHP Code:
Ext.define('EX.model.Player', { 
    
extend'Ext.data.Model'
    
,fields: [
        {
name'id'type'int'}    
        ,{
name'teams_id'type'int'}
        ,{
name'members_id'type'int'}
        ,{
name'sortorder'type'int'}
        ,{
name'fullname'type'string'}
        ,{
name'number_subteam'type'string'}
        ,{
name'is_team_captain'type'bool'}
    ] 

    ,
proxy: {
        
type'ajax'
        
,extraParams: {
            
teams_id0
            
,players_id0
        
}
        ,
api: {
            
create'phpscripts/updatePlayers.json.php' 
            
,read'phpscripts/players.json.php'
            
,update'phpscripts/updatePlayers.json.php' 
            
,destroy'phpscripts/deletePlayers.json.php' 
        
}
        ,
reader: {
            
type'json'
            
,root'response'
        
}
    }
}); 
My Store:
PHP Code:
Ext.define('EX.store.Players', { 
    
extend'Ext.data.Store'
    
model'EX.model.Player',
    
autoLoadtrue
}); 
I still have the problem that I can't put these listeners functions in my controller because I don't know how to 'catch' the event in the control-function.

Any help is appreciated!

Thanks,
Maurice.

BTW: accessing Ext.ModelManager.getModel('string/id') is not working if I put in the id (already removed from my model as it didn't work) or string 'Player' is not working. 'EX.model.Player' seems to work. It looks like only the 'name' of the model is used here. Is this correct and should I file bug-report?