{"id":7983,"date":"2015-11-15T01:27:48","date_gmt":"2015-11-15T01:27:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/15\/slickgrid-one-click-checkboxes-open-source-projects-mleibman-slickgrid\/"},"modified":"2015-11-15T01:27:48","modified_gmt":"2015-11-15T01:27:48","slug":"slickgrid-one-click-checkboxes-open-source-projects-mleibman-slickgrid","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/15\/slickgrid-one-click-checkboxes-open-source-projects-mleibman-slickgrid\/","title":{"rendered":"Slickgrid &#8211; One-click checkboxes?-open source projects mleibman\/SlickGrid"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/11f0ed96fb640751e9c73f5d113a97e1?s=128&amp;d=identicon&amp;r=PG\" \/> <strong>neoswf<\/strong><\/p>\n<p>The only way I found solving it is by editing the <code>slick.checkboxselectcolumn.js<\/code> plugin. I liked the subscribe method, but it haven&#8217;t attached to me any listener to the radio buttons.<\/p>\n<p>So what I did is to edit the functions <em>handleClick(e, args)<\/em> &amp; <em>handleHeaderClick(e, args)<\/em>. I added function calls, and in my js file I just did what I wanted with it.<\/p>\n<pre><code>function handleClick(e, args) {\n    if (_grid.getColumns()[args.cell].id === _options.columnId &amp;&amp; $(e.target).is(\":checkbox\")) {\n        ......\n        \/\/my custom line\n        callCustonCheckboxListener();\n        ......\n    }\n}\n<\/code><\/pre>\n<pre><code>function handleHeaderClick(e, args) {\n    if (args.column.id == _options.columnId &amp;&amp; $(e.target).is(\":checkbox\")) {\n        ...\n        var isETargetChecked = $(e.target).is(\":checked\");\n        if (isETargetChecked) {\n            ...\n            callCustonHeaderToggler(isETargetChecked);\n        } else {\n            ...\n            callCustonHeaderToggler(isETargetChecked);\n        }\n        ...\n    }\n}\n<\/code><\/pre>\n<p><strong>Code<\/strong><\/p>\n<p>pastebin.com\/22snHdrw<\/p>\n<p>Search for my username in the comments<\/p>\n","protected":false},"excerpt":{"rendered":"<p>neoswf The only way I found solving it is by editing the slick.checkboxselectcolumn.js plugin. I liked the subscribe method, but it haven&#8217;t attached to me any listener to the radio buttons. So what I did is to edit the functions handleClick(e, args) &amp; handleHeaderClick(e, args). I added function calls, and in my js file I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7983","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7983"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7983\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}