javascript - extjs 5, deine dropzone on gridpanel, but cannot drop, why? -


i want drag pic , drop gridpanel. definde gridpanel , code below,

viewconfig: {     listeners: {         render: 'onplaylistgridviewrender'     } },  onplaylistgridviewrender: function(component, eopts) {     var gridview = component,         grid = gridview.up('playlistgridpanel');      grid.dropzone = ext.create('ext.dd.dropzone', component.el, {         notifydrop: function(source, e, data){             return true;         }     }); } 

i drag pic , when mouse on grid, icon shows dropping forbidden.

what's wrong here? thanks.

both dragged picture , drop target (the grid) must in ddgroup.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -