GIJGO
Run Example
Close Window
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Example</title> <script src="/Areas/Development/dist/libraries/jquery/jquery.js"></script> <script src="/Areas/Development/dist/modular/js/core.js" type="text/javascript"></script> <link href="/Areas/Development/dist/modular/css/core.css" rel="stylesheet" type="text/css"> <link href="/Areas/Development/dist/modular/css/checkbox.css" rel="stylesheet" type="text/css"> <link href="/Areas/Development/dist/modular/css/grid.css" rel="stylesheet" type="text/css"> <script src="/Areas/Development/dist/modular/js/checkbox.js"></script> <script src="/Areas/Development/dist/modular/js/grid.js"></script> </head> <body style="padding: 8px;"> <button id="btnShowSelection" class="gj-button-md">Show Selection</button> <br/><br/> <table id="grid"></table> <script> var grid = $('#grid').grid({ dataSource: '/Players/Get', columns: [ { field: 'ID', width: 56 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ], selectionMethod: 'checkbox' }); $('#btnShowSelection').on('click', function () { alert(grid.getSelected()); }); </script> </body> </html>