UNPKG

dojox

Version:

Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.

67 lines (66 loc) 1.97 kB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Test dojox.grid.DataGrid Large Data Set</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> <style type="text/css"> @import "../../../dojo/resources/dojo.css"; @import "../resources/Grid.css"; @import "../resources/tundraGrid.css"; body { font-size: 0.9em; font-family: Geneva, Arial, Helvetica, sans-serif; } .heading { font-weight: bold; padding-bottom: 0.25em; } #grid, #grid2 { width: 65em; height: 25em; padding: 1px; } </style> <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug:false, parseOnLoad: true"></script> <script type="text/javascript"> dojo.require("dijit.dijit"); dojo.require("dojox.grid.DataGrid"); dojo.require("dojo.data.ItemFileWriteStore"); dojo.require("dojo.parser"); </script> <script type="text/javascript" src="support/test_data.js"></script> <script type="text/javascript"> // a grid layout is an array of views. var layout = [ [ { name: 'Column 0', field: 'id' }, { name: 'Column 1', field: 'col1' }, { name: 'Column 2', field: 'col2' }, { name: 'Column 3', field: 'col3', width: '150px' }, { name: 'Column 4', field: 'col4' } ], [ {name: 'Column 5', field: 'col5' }, {name: 'Column 6', field: 'col6' }, {name: 'Column 7', field: 'col7' }, {name: 'Column 8', field: 'col3', colSpan: 2} ] ]; </script> </head> <body class="tundra"> <div class="heading">dojox.grid.DataGrid Large Data Set Test</div> <table dojoType="dojox.grid.DataGrid" data-dojo-id="grid" id="grid" store="test_store" query="{ id: '*' }" rowsPerPage="20" structure="layout" rowSelector="20px"> <thead> <tr> <th field="name" width="300px">Country/Continent Name</th> <th field="type" width="auto">Type</th> </tr> </thead> </table> </body> </html>