mapCells

applies the callback to a range of cells

void mapCells(number startrow,string startcol,number numrows,number numcols,function callback,boolean getOnly);
startrow
numberthe start row id startcol
stringthe start column id numrows
numberthe amount of rows numcolsnumberthe amount of columns callbackfunctionthe function calling for each cell in the specified range getOnlybooleanif true, the callback will be applied to the range of cells, but will not change their values

Example

grid.mapCells(1, "title", 3, 2, 
    function(value, row_id, column_id, row_ind, col_ind) {
        console.log(value, row_id, column_id, row_ind, col_ind);
    });

Related samples

Details

Parameters of the callback function are:

If startrow === null, mapping starts from the first row of the table. If startcol === null, mapping starts from the first column of the table. If numrows === null, the callback is applied to all rows, starting from the startrow. If numcols === null, the callback is applied to all columns, starting from the startcol.

See also
  • API
  • Articles
  • 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 javascript framework and page of datagrid javascript product.