onBeforeSelect

fires before a cell is selected

boolean onBeforeSelect(object selection,boolean preserve);
selectionobjectthe selected object
preservebooleanindicates whether the previous selection will be saved
booleanreturning `false` will prevent item selection

Example

some.attachEvent("onBeforeSelect", function (selection, preserve){
    // ... some code here ...
    // return false to block operation
    return true;
});

Details

The selection object depends on the selection mode and includes the following attributes:

  • row - the id of the row with selection
  • column - the id of the column with selection
  • id - the id of the selected item (row, column, or cell, depending on the applied selection mode)
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix open source html5 framework and page of html5 datatable product.