{"action":"closed","issue":{"url":"https://api.github.com/repos/handsontable/handsontable/issues/2125","labels_url":"https://api.github.com/repos/handsontable/handsontable/issues/2125/labels{/name}","comments_url":"https://api.github.com/repos/handsontable/handsontable/issues/2125/comments","events_url":"https://api.github.com/repos/handsontable/handsontable/issues/2125/events","html_url":"https://github.com/handsontable/handsontable/issues/2125","id":56007208,"number":2125,"title":"custom renderer not loading on initial render","user":{"login":"boombard","id":3853814,"avatar_url":"https://avatars.githubusercontent.com/u/3853814?v=3","gravatar_id":"","url":"https://api.github.com/users/boombard","html_url":"https://github.com/boombard","followers_url":"https://api.github.com/users/boombard/followers","following_url":"https://api.github.com/users/boombard/following{/other_user}","gists_url":"https://api.github.com/users/boombard/gists{/gist_id}","starred_url":"https://api.github.com/users/boombard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boombard/subscriptions","organizations_url":"https://api.github.com/users/boombard/orgs","repos_url":"https://api.github.com/users/boombard/repos","events_url":"https://api.github.com/users/boombard/events{/privacy}","received_events_url":"https://api.github.com/users/boombard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-30T08:33:04Z","updated_at":"2015-01-30T08:41:55Z","closed_at":"2015-01-30T08:41:55Z","body":"I have a custom renderer for summing the columns in my handsontable.\r\n\r\nThe values are only shown when a cell is edited, but not when the table loads with its initial data.\r\n\r\nIs there some event to load the initial rendering? Or am I calling the renderer incorrectly?\r\n\r\n```javascript\r\nhot = new Handsontable(container, {\r\n    data: data,\r\n    colHeaders: col_headers,\r\n    rowHeaders: row_headers,\r\n    colWidths: 110,\r\n    rowHeights: 30,\r\n    startRows: row_count,\r\n    maxRow: row_count,\r\n    maxCols: col_headers.length,\r\n    columns: column_types,\r\n    cells: function(row, col, prop){\r\n        if (row === row_count - 1) {\r\n            this.renderer = sumRenderer;\r\n            var cellProperties = {};\r\n            cellProperties.readOnly = true;\r\n        }\r\n        return cellProperties;\r\n    }\r\n});\r\n\r\nvar sumRenderer = function (instance, td, row, col, prop, value) {\r\n    var total = 0;\r\n    for (ii = 0; ii < row; ii++) {\r\n         total += instance.getDataAtCell(ii, col);\r\n    };\r\n    value = total;\r\n\r\n    Handsontable.renderers.NumericRenderer.apply(this, arguments);\r\n};\r\n```"}}