Backgrid.js - (Re)orderable columns
Warning! This extension is not production ready yet, just a mere proof of concept. It lacks documentation, automatic testing and edge-case tests.
To discuss this extension, see this backgrid issue.
Demo
Online demo of can be found here
Browser support (tested)
- IE8+
- Firefox
- Chrome
Features
- Order columns based on 'position' attribute
- Dependency: backgrid-sizeable-columns
- Supports grouped columns
Example
// Setup sortable column collectionvar columnCollection = BackgridColumns;var columns = columnsArray;columns; // Add sizeable columnsvar sizeAbleCol = collection: pageableTerritories columns: columns;$backgridContainer; // Make columns reorderablevar orderHandler = grid: pageableGrid sizeAbleColumns: sizeAbleCol;$backgridContainer;
License
Copyright © 2014 Fortes Solutions.
Licensed under the MIT license.
Authors
This extension was created by Wilbert van de Ridder and is currently maintained by Fortes Solutions Team.