PDA

View Full Version : Hide green line in grid at drag&drop



nothing
25 Jun 2013, 2:01 AM
How to hide or remove the green helping line that appears on drop zones?

It appears when dragging a grid to another grid to drop it there.

Screenshot:
44528

suzuki1100nz
26 Jun 2013, 1:02 AM
Done with css.
Have a look at overCls or overItemCls

slemmon
26 Jun 2013, 2:55 PM
You might take a look at the source for Ext.view.DropZone and Ext.grid.ViewDropZone
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.view.DropZone
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.ViewDropZone

You'll see it set up indicatorCls which is "Ext.baseCSSPrefix + 'grid-drop-indicator'" (which normally would be x-grid-drop-indicator).

Then look in /path/to/ExtJS/SDK/resources/ext-theme-classic/ext-theme-classic-all-debug.css and search for grid-drop-indicator to see how it's defined for classic.