How to have a checkbox in the header - onclicking this all the checkboxes in the column should be checked/unchecked?

How to have a checkbox in the header - onclicking this all the checkboxes in the column should be checked/unchecked?

Hi @hbhattiprolu

here’s the same logic behind two buttons: http://jsfiddle.net/handsoncode/1eg8dmsg/1/

and here http://jsfiddle.net/handsoncode/9e4044cf/ is an example with checkbox inside a header.