TabSheetModel.eachRealCell

Syntax

eachRealCell(action: function, context);

Parameters

action. Function to be executed for table real cells.

context. Context from which the method is invoked.

Description

The eachRealCell method executes specified function for each real cell in the table.

Comments

A real cell is the cell taken not from table cache. If the cell is taken from cache, it is named a virtual one.

Example

To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Add the plus sign + to value of each real cell in the table:

// Get table data model
var model = tabSheet.getModel();
// Add the + sign to each real cell value in table
model.eachRealCell(function (cell) {
    var coord = cell.getCoord();
    tabSheet.setCellValue("+" + cell.CellData.FormattedText, coord.rowIndex, coord.colIndex)
}, this);

After executing the example the plus sign + is added to value of each real cell in the table:

See also:

TabSheetModel