

You can subscribe to the columnMovingEnd event of the igx-grid to implement some custom logic when a column is dropped to a new position. These are columnMovingStart, columnMoving and columnMovingEnd. There are several events related to the column moving to provide a means for tapping into the columns' drag and drop operations. Also note that in comparison to the drag and drop functionality, using the API does not require setting the moving property to true. Note that when using the API, only the columnMovingEnd event will be emitted, if the operation was successful. If the passed index parameter is invalid (is negative, or exceeds the number of columns), or if the column is not allowed to move to this index (if inside another group), no operation is performed. Move - Moves a column to a specified visible index. Grid.moveColumn(idColumn, nameColumn, DropPosition.AfterDropTarget) Move the ID column after the Name columnĬonst idColumn = grid.getColumnByName("ID") Ĭonst nameColumn = grid.getColumnByName("Name") Also accepts an optional third parameter position (representing a DropPosition value), which determines whether to place the column before or after the target column.

The first parameter is the column to be moved, and the second parameter is the target column. MoveColumn - Moves a column before or after another column (a target). In addition to the drag and drop functionality, the Column Moving feature also provides two API methods to allow moving a column/reordering columns programmatically: This is done via the moving input of the igx-grid. SharePlus Secure, instant access to content and data on the go – with or without connectivity.Ĭolumn moving feature is enabled on a per-grid level, meaning that the igx-grid could have either movable or immovable columns.Slingshot Connect everyone you work with to data, project management, content and chats for better results.Slingshot Empower everyone in your organization to use data to make smarter business decisions.Reveal Easily embed beautiful data visualizations into your apps.
Ag grid column order code#
App Builder Cloud-based WYSIWYG Drag & Drop Tool, Endless Theming options and Standards-Based Code Output.Indigo.Design A Unified Platform for Visual Design, UX Prototyping, Code Generation, and App Development.
Ag grid column order windows#
