onBeforeSelect

fires a moment before a row in the grid is selected

void onBeforeSelect(string|number new_row,string|number old_row,number new_col_index){ ... };

Parameters

new_rowstring|numberthe id of a newly selected row
old_rowstring|numberthe id of a previously selected row
new_col_indexnumberthe index of a newly selected cell/column

Available only in PRO Edition

Example

grid.attachEvent("onBeforeSelect", function(new_row,old_row,new_col_index){
    //your code here
});

Back to top