gridx.modules.ColumnLock
Object » _Module » gridx.modules.ColumnLock
dojo.require("gridx.modules.ColumnLock");
Defined in gridx/modules/ColumnLock.js
This module provides a way to lock consecutive leading columns. Columns can be locked in following ways:
Examples:
Example 1
1. Columns can be locked when Grid is initially rendered
var grid = new Grid({
modules: [
{moduleClass: gridx.modules.ColumnLock, count: 2}, ...
],
...
});
Or another way to set the lock number:
var grid = new Grid({
columnLockCount: 2
modules: [
gridx.modules.ColumnLock, ...
],
})
2. Lock or unlock columns dynamically
// lock 2 leading columns
grid.columnLock.lock(2)
// unlock all columns
grid.columnLock.unLock();
Property Summary
Method Summary
- _hackHScroller() This method changes behavior of hscroller. It will scroll each row instead of the body node while some columns are locked.
- _lockColumns(rowNode) Lock columns for one row
- _unlockColumns(rowNode)
- _updateBody() Update the body for column lock
- _updateHeader() Update the header for column lock
- _updateScroller() Update h-scroller for column lock
- _updateUI()
- getAPIPath()
- load(args, deferStartup)
- lock(count) Dynamically lock consecutive #count leading columns.
- unlock() Unlock all columns.
Attached Objects
Properties
Methods
Overrides _Module
This method changes behavior of hscroller. It will scroll each row instead of the body node
while some columns are locked.
Overrides _Module
Dynamically lock consecutive #count leading columns.
Parameter | Type | Description |
---|---|---|
count | Integer |