UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

60 lines (53 loc) 2.1 kB
<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes"> <title>Remote Summary Grid Example</title> <!-- Ext --> <link rel="stylesheet" type="text/css" href="../shared/examples.css" /> <!-- GC --> <script type="text/javascript" src="../shared/include-ext.js"></script> <script type="text/javascript" src="../shared/options-toolbar.js"></script> <!-- This script intercepts ajax and provides canned data in response: --> <script type="text/javascript" src="remote-group-summary-grid-simjax.js"></script> <!-- This code would otherwise make real ajax requests to the server: --> <script type="text/javascript" src="remote-group-summary-grid.js"></script> <style type="text/css"> .task .x-grid-cell-inner { padding-left: 15px; } .x-grid-row-summary { color:#333; background: #f1f2f4; } .x-grid-row-summary .x-grid-cell-inner { font-weight: bold; padding-bottom: 4px; } .x-grid-hide-summary .x-grid-row-summary { display:none; } .x-grid-row .x-grid-cell-cost { background-color:#f1f2f4; } .x-grid-row-summary .x-grid-cell-cost { background-color:#e1e2e4; } </style> </head> <body> <h1>Remote Summary Grid Example</h1> <p>This example demonstrates the use of the GroupingSummaryFeature with server-side summary calculation (results are intentionally wrong).</p> <p>This page also illustrates how to use Ajax simulation instead of a live server.</p> <p>Note that the js is not minified so it is readable. See <a href="remote-group-summary-grid.js">remote-group-summary-grid.js</a> and <a href="remote-group-summary-grid-simjax.js">remote-group-summary-grid-simjax.js</a>.</p> </body> </html>