GIJGO
Run Example
Close Window
<!DOCTYPE html> <html> <head> <title>Responsive Bootstrap jQuery Grid</title> <meta charset="utf-8" /> <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <script src="https://unpkg.com/gijgo@1.9.14/js/gijgo.min.js" type="text/javascript"></script> <link href="https://unpkg.com/gijgo@1.9.14/css/gijgo.min.css" rel="stylesheet" type="text/css" /> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> </head> <body> <style> /* Hide the column by default */ @@media only all { TABLE.gj-grid-table th.display-1008, TABLE.gj-grid-table td.display-1008 { display: none; } } /* Show at 1008px (63em x 16px) */ @@media screen and (min-width: 63em) { TABLE.gj-grid-table th.display-1008, TABLE.gj-grid-table td.display-1008 { display: table-cell; } } </style> <table id="grid" data-source="/Players/Get" data-ui-library="bootstrap"> <thead> <tr> <!-- Hide if the screen width is less than 320px --> <th width="36" data-css-class="display-320" data-header-css-class="display-320">ID</th> <!-- Always visible --> <th>Name</th> <!-- Hide if the screen width is less than 1008px --> <th width="220" data-field="PlaceOfBirth" data-css-class="display-1008" data-header-css-class="display-1008">Place Of Birth</th> <!-- Hide if the screen width is less than 960px --> <th width="120" data-field="DateOfBirth" data-type="date" data-css-class="display-960" data-header-css-class="display-960">Date Of Birth</th> </tr> </thead> </table> <script type="text/javascript"> $(document).ready(function () { var $grid = $('#grid').grid(); }); </script> </body> </html>