PDA

View Full Version : How get store from overModel



neosky
26 Feb 2014, 3:35 AM
Hello i am have next function for drag and drop between two grids, and i am want get store from overModel,how it make?



beforeDrop: function(node, data, overModel, dropPosition, dropHandlers){}

i am do this:



console.log(overModel.store)

but it does not work,thanks.

Zinnia
26 Feb 2014, 4:05 AM
you can get the store through component query


var grid = Ext.ComponentQuery.query('#grid2')[0]; var store = grid.getStore();

Check the below url .

http://stackoverflow.com/questions/20163762/extjs4-how-to-update-record-column-after-drag-and-drop-on-a-grid

neosky
26 Feb 2014, 6:11 AM
you can get the store through component query


var grid = Ext.ComponentQuery.query('#grid2')[0]; var store = grid.getStore();

Check the below url .

http://stackoverflow.com/questions/20163762/extjs4-how-to-update-record-column-after-drag-and-drop-on-a-grid

Very thanks, only query or it is possible somehow still?