Preserve selections across various user actions.
When this feature is turned on, Grid will try to preserve selections across actions, e.g. sorting, filtering etc.
Precondition - Identifier(id) is required for store since id is the only way for differentiating row items. Known issue - The preserved selections might be inaccurate if some unloaded rows are previously selected by range(e.g.SHIFT + click)
| Parameter | Type | Description |
|---|---|---|
| selection | undefined |
//To turn on this - please set 'keepSelection' attribute to true <div dojoType="dojox.grid.DataGrid" keepSelection = true .../> <div dojoType="dojox.grid.TreeGrid" keepSelection = true .../> <div dojoType="dojox.grid.LazyTreeGrid" keepSelection = true .../>
When some rows is fetched, determine whether it should be selected.
| Parameter | Type | Description |
|---|---|---|
| item | undefined | |
| index | undefined |
Record selected rows by ID.
| Parameter | Type | Description |
|---|---|---|
| toSelect | undefined | |
| inItemOrIndex | undefined |