HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
In this tutorial, we'll show you how to display summary information footer row in the data grid (datagrid).
In order to display the footer line, you should set showFooter property is true, then prepare defined in the data grid (datagrid) data footer rows. The following is a sample data:
{ "Total": 1, "rows": [{ "id": 1, "name": "Chai", "price": 18.00}], "footer": [{ "name": "Total", " price ": 18.00}]}
<Table id = "tt" title = "DataGrid" class = "easyui-datagrid" style = "width: 400px; height: 250px" url = "data / datagrid17_data.json" fitColumns = "true" rownumbers = "true" showFooter = "true"> <Thead> <Tr> <Th field = "name" width = "80"> Product Name </ th> <Th field = "price" width = "40" align = "right"> Unit Price </ th> </ Tr> </ Thead> </ Table>
Footer rows and rows of data to display the same, so you can display more than one summary information in the footer.