handsontable: hide some columns without changing data array/object
问题 I have a data to show in grid. I am using handsontable to show data. Each 3rd column is computed as difference of previous two (for example, 3rd column is rendered as the sum of 1st and 2nd column; this is done by custom renderer taking sum of i-1 and i-2 columns). This is my custom renderer for "difference" columns: var val1 = instance.getDataAtCell(row, col - 1), val2 = instance.getDataAtCell(row, col - 2), args = arguments; args[5] = val2 - val1; if (args[5] !== 0) { $(td).addClass('grid