JQuery Grid

Set the renderstatusbar property of the jqxGrid. Author: http://jqwidgets.com

by jqwidgets

HTML

<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="https://jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/generatedata.js"></script>
<div id="jqxgrid"></div>

JavaScript

var getAdapter = function () {
     // prepare the data
     var data = generatedata(15);
     var source = {
         localdata: data,
         datatype: "array",
         datafields: [{
             name: 'firstname',
             type: 'string'
         }, {
             name: 'lastname',
             type: 'string'
         }, {
             name: 'productname',
             type: 'string'
         }, {
             name: 'quantity',
             type: 'number'
         }, {
             name: 'price',
             type: 'number'
         }, {
             name: 'available',
             type: 'bool'
         }],
         updaterow: function (rowid, rowdata, commit) {
             // synchronize with the server - send update command
             // call commit with parameter true if the synchronization with the server is successful 
             // and with parameter false if the synchronization failed.
             commit(true);
         }
     };
     var dataAdapter = new $.jqx.dataAdapter(source);
     return dataAdapter;
 }
 // initialize jqxGrid
 $("#jqxgrid").jqxGrid({
     width: 500,
     theme: 'energyblue',
     source: getAdapter(),
     showstatusbar: true,
     renderstatusbar: function (statusbar) {
         statusbar.append($("<span style='margin: 5px;'>Status Bar</span>"));
     },
     columns: [{
         text: 'First Name',
         columntype: 'textbox',
         datafield: 'firstname',
         width: 90
     }, {
         text: 'Last Name',
         datafield: 'lastname',
         columntype: 'textbox',
         width: 90
     }, {
         text: 'Product',
         datafield: 'productname',
         width: 170
     }, {
         text: 'In Stock',
         datafield: 'available',
         columntype: 'checkbox',
         width: 125
     }, {
         text: 'Quantity',
         datafield: 'quantity',
         width: 85,
         cellsalign: 'right',
         cellsformat: 'n2'
     },
     {
         text: 'Price',
         datafield:...