Extjs4 - filter grid drag and drop?

Ok, I've found a workaround the issue. The idea is to replace the records property of the data parameter in beforedrop. (The records property is basically an array of Model/Records dropped on the grid) So, with this example config for the grid: viewConfig: { plugins: { dropGroup: 'items', ptype: 'gridviewdragdrop' }, listeners: { beforedrop: this.

OnBeforeDropItem, scope:this } } The handler for beforedrop looks like this: ,onBeforeDropItem: function(node, data, overModel, dropPosition, dropFunction, options) { var final_records = ; nrecords = data.records. Length; for(var i=0;iPush(record); } } data. Records = final_records; } (in my case, the condition is to test if the record is already in my local grid store, but could be anything else) Maybe I'm re-inventing the wheel though.

Has anyone got a better solution?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions