Html Grid

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

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>
<div style="margin-top: 30px;">
  <div id="cellbegineditevent"></div>
  <div style="margin-top: 10px;" id="cellendeditevent"></div>
</div>
<div id="popupWindow">
  <div>Edit</div>
  <div style="overflow: hidden;">
    <table>
      <tr>
        <td align="right">First Name:</td>
        <td align="left"><input id="firstName" /></td>
      </tr>
      <tr>
        <td align="right">Last Name:</td>
        <td align="left"><input id="lastName" /></td>
      </tr>
      <tr>
        <td align="right">Product:</td>
        <td align="left"><input id="product" /></td>
      </tr>
      <tr>
        <td align="right">Quantity:</td>
        <td align="left"><div id="quantity"></div></td>
      </tr>
      <tr>
        <td align="right">Price:</td>
        <td align="left"><div id="price"></div></td>
      </tr>
      <tr>
        <td align="right"></td>
        <td style="padding-top: 10px;" align="right"><input style="margin-right: 5px;" type="button" id="Save" value="Save" /><input id="Cancel" type="button" value="Cancel" /></td>
      </tr>
    </table>
  </div>
</div>

JavaScript

var theme = '';
// prepare the data
var data = generatedata(200);
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' }
      ],
      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 failder.
        commit(true);
      }
    };
// initialize the input fields.
$("#firstName").jqxInput({ theme: theme });
$("#lastName").jqxInput({ theme: theme });
$("#product").jqxInput({ theme: theme });

$("#firstName").width(150);
$("#firstName").height(23);
$("#lastName").width(150);
$("#lastName").height(23);
$("#product").width(150);
$("#product").height(23);
$("#quantity").jqxNumberInput({spinMode: 'simple', width: 150, height: 23, min: 0, decimalDigits: 0, spinButtons: true });
$("#price").jqxNumberInput({ spinMode: 'simple', symbol: '$', width: 150, min: 0, height: 23, spinButtons: true });
var dataAdapter = new $.jqx.dataAdapter(source);
var editrow = -1;
// initialize jqxGrid
$("#jqxgrid").jqxGrid(
  {
    width: 650,
    source: dataAdapter,
    //pageable: true,
    //autoheight: true,
    columns: [
      { text: 'First Name', datafield: 'firstname' },
      { text: 'Last Name', datafield: 'lastname' },
      { text: 'Product', datafield: 'productname' },
      { text: 'Quantity', datafield: 'quantity', width: 90, cellsalign: 'right' },
      { text: 'Price', datafield: 'price', width: 90, cellsalign: 'right', cellsformat: 'c2' },
      { text: 'Edit', datafield: 'Edit', columntype: 'button', cellsrenderer: function () {
        return "Edit";
      }, buttonclick: function (row) {
        //...