12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- <link href="../../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet"
- type="text/css" />
- <script src="../../../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="../../../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="../../../lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <script src="../../../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
- <script src="../ProductData.js" type="text/javascript"></script>
- <script type="text/javascript">
-
- $(function () {
- $("#maingrid").ligerGrid({
- columns: [
- {
- display: '产品', columns:
- [
- { display: '主键', name: 'ProductID', type: 'int', totalSummary:
- {
- type: 'count'
- }
- },
- { display: '产品名', name: 'ProductName', align: 'left', width: 100 },
- { display: '单价', name: 'UnitPrice', align: 'right', type: 'float',
- totalSummary:
- {
- type: 'sum,max'
- }
- }
- ]
- },
- {
- display: '仓库数量', name: 'UnitsInStock', align: 'right', type: 'float',
- totalSummary:
- {
- type: 'sum'
- }
- }
- ]
- , isScroll: false, data: ProductData, sortName: 'ProductID'
- });
- });
- </script>
- </head>
- <body>
- <div id="maingrid">
- </div>
- <div style="display: none;">
- </div>
- </body>
- </html>
|