Backgrid.ColumnManager
Manages the backgrid column collection. Adds the ability to toggle column visibility (initially and on the fly) and is able to track, save and load state (width, order and visibility). Online demo
Example usage
// Create column collectionvar columns = ...; var territories = ...; // Initialize column managervar colManager = columns initialColumnsVisible: 4 // State settings saveState: true loadStateOnInit: true; // Add controlvar colVisibilityControl = columnManager: colManager; ; // Initialize a new Grid instancevar grid = columns: columns collection: territories; // Render the grid; // Listen to state changescolManager;colManager;
Authors
This project is originally developed by Wilbert van de Ridder and sponsored by Solodev.