eachRealCell(action: function, context);
action. Function to be executed for table real cells.
context. Context from which the method is invoked.
The eachRealCell method executes specified function for each real cell in the table.
Real cells cannot be obtained from table cache. If a cell is obtained from cache, this cell is virtual.
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: