{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-grid/issues/4734","labels_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/4734/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/4734/comments","events_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/4734/events","html_url":"https://github.com/angular-ui/ui-grid/issues/4734","id":117779220,"number":4734,"title":"How to disable sorting when clicking on an element within headerCellTemplate","user":{"login":"feintus","id":6077872,"avatar_url":"https://avatars.githubusercontent.com/u/6077872?v=3","gravatar_id":"","url":"https://api.github.com/users/feintus","html_url":"https://github.com/feintus","followers_url":"https://api.github.com/users/feintus/followers","following_url":"https://api.github.com/users/feintus/following{/other_user}","gists_url":"https://api.github.com/users/feintus/gists{/gist_id}","starred_url":"https://api.github.com/users/feintus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feintus/subscriptions","organizations_url":"https://api.github.com/users/feintus/orgs","repos_url":"https://api.github.com/users/feintus/repos","events_url":"https://api.github.com/users/feintus/events{/privacy}","received_events_url":"https://api.github.com/users/feintus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T09:57:12Z","updated_at":"2015-11-27T23:48:11Z","closed_at":"2015-11-27T23:48:11Z","body":"Hi,\r\nI have changed one of my grid's header template and inserted a directive with in that template (help-icon). \r\nThe directive is like a button when clicked it should display something.\r\n\r\nThe issue is when I click on that directive it works as it should but this fires up the sorting of the column as well. I would like to prevent it but keep the sorting when clicking outside of that directive but within the headers boundaries.\r\n\r\n```javascript\r\nHeaderTemplate = <div ng-class=\"{ 'sortable': sortable }\" class=\"sortable\"> \r\n                               <div class=\"ui-grid-cell-contents\" col-index=\"renderIndex\" add-  tooltip=\"{{col.displayName}}\">{{col.displayName}}\r\n<span>&nbsp;<help-icon class=\"help-icon\"></span>\r\n<span style=\"padding-left: 5px;\" ui-grid-visible=\"col.sort.direction\" ng-class=\"{ 'ui-grid-sorting-asc pull-right': col.sort.direction == asc, 'ui-grid-sorting-desc pull-right': col.sort.direction == desc}\" class=\"ui-grid-invisible\">&nbsp;\r\n</span></div></div>;\r\n```\r\n\r\n\r\nFor example:\r\n\r\nhttp://plnkr.co/edit/NkOo7olK8UiFQsMuyPER?p=preview\r\n\r\nClicking on the check box of \"First Name\" header - activates the sorting. How could I prevent that, but keep it working when clicking outside of the check box but within the header.\r\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-grid/issues/comments/160227556","html_url":"https://github.com/angular-ui/ui-grid/issues/4734#issuecomment-160227556","issue_url":"https://api.github.com/repos/angular-ui/ui-grid/issues/4734","id":160227556,"user":{"login":"imbalind","id":2514478,"avatar_url":"https://avatars.githubusercontent.com/u/2514478?v=3","gravatar_id":"","url":"https://api.github.com/users/imbalind","html_url":"https://github.com/imbalind","followers_url":"https://api.github.com/users/imbalind/followers","following_url":"https://api.github.com/users/imbalind/following{/other_user}","gists_url":"https://api.github.com/users/imbalind/gists{/gist_id}","starred_url":"https://api.github.com/users/imbalind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imbalind/subscriptions","organizations_url":"https://api.github.com/users/imbalind/orgs","repos_url":"https://api.github.com/users/imbalind/repos","events_url":"https://api.github.com/users/imbalind/events{/privacy}","received_events_url":"https://api.github.com/users/imbalind/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T23:48:11Z","updated_at":"2015-11-27T23:48:11Z","body":"Hi thanks for your inquiry.\r\n\r\nIn an effort to better manage this project and provide support to everyone we are directing \"How-To\" questions to Stack Overflow.\r\n\r\nOur team and other users are making a concerted effort to respond people on SO.\r\n\r\nBe sure to tag your question with [angular-ui-grid]!"}}