ColumnReorder
Feature
Allows user to reorder columns by dragging headers. Click and drag a column header to move it to a new position. Visual feedback shows the drop target while dragging. To get notified about column reorder, listen to the change event on the columns store.
This feature is enabled by default.
See also
- ColumnDragToolbar - Toolbar shown during column drag
- ColumnPicker - Column visibility picker
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Set to
trueto stretch the column drag proxy element to cover the full height of the grid.Has a corresponding runtime stretchedDragProxy property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ColumnReorder class, or subclass thereof.
-
Returns true if a reorder operation is active
-
Set to
trueto stretch the column drag proxy element to cover the full height of the grid.Has a corresponding stretchedDragProxy config.
-
Identifies an object as an instance of ColumnReorder class, or subclass thereof.
Functions
Functions are methods available for calling on the class-
init( )private
Initialize drag & drop (called from render)
-
onDrop( )private
Handle drop
-
onInternalPaint( )private
Initializes this feature on grid paint.
-
onInvalidDrop( )private
Handle invalid drop
-
renderContents( )private
Updates DragHelper with updated headers when grid contents is rerendered