Putting the extjs drop event listener in the controller instead of the view?

If drop event works in dataview put in into "cardList dataview" section.

If drop event works in dataview put in into "cardList dataview" section init: function () { this. Control({ 'cardlist dataview': { itemdblclick: this. EditUser, drop: this.

Dropit }, 'cardlist': { edit: this. InlineUpdateUser } }); }.

I tried this originally but wasn't able to get it to work. But I got it working this morning because I left the listeners: { drop: function() declared in the view when before I was just removing that entire block of code. Thank you :) EDIT: on second thought, it works without this, I guess I just forgot to include the dataview in the selector.

– Robodude Jul 7 at 15:58.

Add below to controller's launth fn or grid's afterrender listener var grid = Ext.ComponentQuery. Query('cardlist'); grid.view. On('drop,this.

OnDrop,this) or you can relayEvent view's drop event to grid.

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