View Full Version : confusion in DD

11 Aug 2014, 4:30 AM
When I drag - drop grid rows using the ptype gridviewdragdrop plugin (like in http://docs.sencha.com/extjs/4.2.2/#!/example/build/KitchenSink/ext-theme-neptune/#dd-grid-to-grid) to a ftype groupingsummary grid which I added to the example, I get buggy behavior: EXT. gets into an endless loop - paralysing the browser, when I drag rows from one group to an other group (id). Also in certain unclear circumstances I get duplicates in the viewstore of the dropgrid.
I've also found other users confronted with this problem filing bug reports ( yet unresolved )

The good thing here is that after some hard labour, I've found some workarounds to these problems with a 'Ext.grid.ViewDropZone' override of the "handleNodeDrop" function in where I sort the viewstore at the end of the function and where I check for duplicates (and remove them) This resolves the endless loop problems and duplicates. It does sort the grid though.


Ext.view.grid.dropzone &

Are private classes, where the docs say that I shouldn't depend on their existence. And as I am only able to resolve the issues overriding 'Ext.grid.ViewDropZone', and not via the other classes - is this approach valid and future proof?


15 Aug 2014, 3:20 PM
Glad to hear you were able to overcome these problems. Would be great if you could share your overrides with the community as you are probably not the only one to encounter these issues. It is sometimes necessary to use or override protected methods until bugs have been addressed in the framework. It's not 100% future proof but the approach is valid. Especially given the alternative of having code/components that do not work imho.
I would however check the release notes and test said override thoroughly before upgrading.