{"action":"created","issue":{"url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/292","repository_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid","labels_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/292/comments","events_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/292/events","html_url":"https://github.com/Knockout-Contrib/KoGrid/issues/292","id":45774988,"number":292,"title":"problem with checkbox column ","user":{"login":"jconiconde","id":8486521,"avatar_url":"https://avatars.githubusercontent.com/u/8486521?v=3","gravatar_id":"","url":"https://api.github.com/users/jconiconde","html_url":"https://github.com/jconiconde","followers_url":"https://api.github.com/users/jconiconde/followers","following_url":"https://api.github.com/users/jconiconde/following{/other_user}","gists_url":"https://api.github.com/users/jconiconde/gists{/gist_id}","starred_url":"https://api.github.com/users/jconiconde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jconiconde/subscriptions","organizations_url":"https://api.github.com/users/jconiconde/orgs","repos_url":"https://api.github.com/users/jconiconde/repos","events_url":"https://api.github.com/users/jconiconde/events{/privacy}","received_events_url":"https://api.github.com/users/jconiconde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-14T17:06:55Z","updated_at":"2016-05-13T04:35:09Z","closed_at":null,"body":"Checkbox column is duplicated everytime it is loaded in second attempt, other grid on the same context also adding its checkbox column. Here's the scenario, all grids are inside jquery ui tab. Each tab panel is generated from template (not remote tab).  The 'grid columns' (not sure if this is the cause) inside the first tab was populated dynamically. When an action is clicked inside the grid  in the 1st tab, 2nd tab will be generated with its grid. On first load, it is fine, but after i closed the 2nd tab and generate it again, all checkbox column on each grid are incremented. Please help"},"comment":{"url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/comments/218950031","html_url":"https://github.com/Knockout-Contrib/KoGrid/issues/292#issuecomment-218950031","issue_url":"https://api.github.com/repos/Knockout-Contrib/KoGrid/issues/292","id":218950031,"user":{"login":"markdreyer","id":4984469,"avatar_url":"https://avatars.githubusercontent.com/u/4984469?v=3","gravatar_id":"","url":"https://api.github.com/users/markdreyer","html_url":"https://github.com/markdreyer","followers_url":"https://api.github.com/users/markdreyer/followers","following_url":"https://api.github.com/users/markdreyer/following{/other_user}","gists_url":"https://api.github.com/users/markdreyer/gists{/gist_id}","starred_url":"https://api.github.com/users/markdreyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markdreyer/subscriptions","organizations_url":"https://api.github.com/users/markdreyer/orgs","repos_url":"https://api.github.com/users/markdreyer/repos","events_url":"https://api.github.com/users/markdreyer/events{/privacy}","received_events_url":"https://api.github.com/users/markdreyer/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T04:35:09Z","updated_at":"2016-05-13T04:35:09Z","body":"I have this issue as well. Seems to be when columnDefs config is observable. The buildColums method will add the checkbox column, even if it has already been added (which is likely since it is subscribed to the columnDefs observable):\r\n\r\n\r\n\r\n//FILE: ..\\src\\classes\\grid.js\r\n\r\n    self.buildColumns = function () {\r\n        var columnDefs = self.config.columnDefs,\r\n            cols = [];\r\n\r\n        if (!columnDefs) {\r\n            self.buildColumnDefsFromData();\r\n            columnDefs = self.config.columnDefs;\r\n        }\r\n        if (self.config.displaySelectionCheckbox && self.config.canSelectRows) {\r\n            columnDefs.splice(0, 0, {\r\n                field: '\\u2714',\r\n                width: self.elementDims.rowSelectedCellW,\r\n                sortable: false,\r\n                resizable: false,\r\n                headerCellTemplate: '<input class=\"kgSelectionHeader\" type=\"checkbox\" data-bind=\"visible: $grid.multiSelect, checked: $grid.allSelected\"/>',\r\n                cellTemplate: '<div class=\"kgSelectionCell\"><input class=\"kgSelectionCheckbox\" type=\"checkbox\" data-bind=\"checked: $parent.selected\" /></div>'\r\n            });\r\n        }\r\n\r\n\r\n\r\n//FILE: ..\\src\\bindingHandlers\\ko-grid.js\r\n\r\n            if (ko.isObservable(options.columnDefs)) {\r\n                options.columnDefs.subscribe(function (newDefs) {\r\n                    grid.columns([]);\r\n                    grid.config.columnDefs = newDefs;\r\n                    grid.buildColumns();\r\n                    grid.configureColumnWidths();\r\n                });\r\n            }\r\n\r\n"}}