PDA

View Full Version : Mouseover in actioncolumn



fabio.policeno
28 Feb 2012, 10:49 AM
Hello,

How to invocate the mouseover in button of actioncolumn?

Thank's!

mitchellsimoens
28 Feb 2012, 5:31 PM
You would have to get the Ext.Element instance of the element you want and it can then have the mouseover event.

fabio.policeno
29 Feb 2012, 3:36 AM
This is one of my difficulties, I made the attempt to get the element, but without success:


...
{
xtype : 'actioncolumn',
itemId : 'reorder',
items : [{
icon : me.imgIconDrag,
iconCls : me.clsPointer,
tooltip : me.textDragRow
}
...
me.down('#reorder').el.on('mouseover', function(){console.log('over')}); // no exists this event

console.log(me.down('#reorder').items[0].el); // return undefined
...

mashiki
15 Mar 2012, 9:43 PM
Ext.select('.x-action-col-icon').on('mouseover', function(){console.log('over')});
or '.x-action-col-N'

This can handle mouseover,
but, cannot get any row data.

or override Ext.grid.column.Action's private method "processEvent"?

fabio.policeno
16 Mar 2012, 1:26 PM
We chose to work directly on the grid drag drop plugin. In the grid view afterRender:


activeReorderFile: function(view) {
view.getPlugin('reorderfile').dragZone.isPreventDrag = function(e) {
return Ext.isEmpty(e.getTarget('.x-grid-cell-last', 10));
};
},


Thank's!