Preserve selections across various user actions.
Extends dojox.grid._SelectionPreserver adding a bit more support to make selection persistence working well with various EnhancedGrid features, e.g. filtering, nested sorting, pagination, select all etc.
Precondition - Identifier(id) is required for store, as id is used 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 - set 'keepSelection' attribute to true <div dojoType="dojox.grid.EnhancedGrid" keepSelection = true .../>
Overwritten
| Parameter | Type | Description |
|---|---|---|
| item | undefined | |
| index | undefined |
Overwritten
| Parameter | Type | Description |
|---|---|---|
| toSelect | undefined | |
| inItemOrIndex | undefined |
This function try to keep the selection info updated when range selection is performed.
| Parameter | Type | Description |
|---|---|---|
| trustSelection | undefined | |
| isSelect | undefined | |
| isForAll | undefined | |
| from | undefined | |
| to | undefined |
| Parameter | Type | Description |
|---|---|---|
| id | undefined | |
| rowIndex | undefined | |
| value | undefined |
//To turn on this - set 'keepSelection' attribute to true <div dojoType="dojox.grid.EnhancedGrid" keepSelection = true .../>