PDA

View Full Version : EXT JS 4.1 - Grid Listener and Drag / Drop



ankursharan
15 Oct 2014, 11:47 AM
Hi All,
I have 2 grids and I am trying to implement a drag and drop featue. It was working with the code in a popup until I moved it to a seperate comonent (a container). I am not sure what is making it to not work. None of the grid events are called. Is Ext bocking the events in nested components ?

UPDATE I can see that the drag and drop code works fine. The issue is when I combine it with different component in view.
if I implement it like below it does not work. Here 'userrole' is my drag and drop grids. If I comment out the Button and 'userform' it works as expected. Any one can suggest on this ?


you can find the code at the following location.
http://stackoverflow.com/questions/26303847/grid-to-grid-drag-and-drop-in-extjs

slemmon
22 Oct 2014, 8:45 PM
Nothing is jumping out at me in your code snippets except that I wouldn't expect to see the buttons config as an item in the items array:



buttons: [{
text: 'Modify User',
name: 'modifyUser'
}, {
text: 'Add New User',
name: 'addNewUser'
}]


Even better than posting code snippets would be to post a test case at https://fiddle.sencha.com to allow users to test along with you.