Documentation

onAfterSelect

fires after a cell is selected

void onAfterSelect(object data,boolean preserve){ ... };

Parameters

dataobjectthe selected object
preservebooleanindicates whether the previous selection state should be saved

Example

some.attachEvent("onAfterSelect", function (data, preserve){
  //... some code here ...
});

Details

If multiselect mode is enabled, the event will fire:

  • Each time you select an item with Ctrl+click;
  • Once for each selected item in the group during Shift+click selection.

In each case, the ID of the newly selected item be passed to the event.

To get the IDs of currently selected items, you can use a combination of onSelectChange and the selectRange method.

See also

Back to top