JQuery Grid
Invoke the deleterow method of the jqxGrid. Author: http://jqwidgets.com
by Witold
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>
<script src="https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/localization.js"></script>
<div id="jqxgrid">
JavaScript
var data = generatedata(500);
var source =
{
localdata: data,
datafields:
[
{ name: 'name', type: 'string' },
{ name: 'productname', type: 'string' }
],
datatype: "array"
};
var dataAdapter = new $.jqx.dataAdapter(source);
var items = new Array();
items.push(data[0].name);
items.push(data[1].name);
items.push(data[2].name);
items.push(data[3].name);
items.push(data[4].name);
$("#jqxgrid").jqxGrid(
{
width: 600,
source: dataAdapter,
showfilterrow: true,
filterable: true,
columns: [
{ text: 'Name', filtertype: 'list', filteritems: items, datafield: 'name', width: 200 },
{ text: 'Product', filtertype: 'checkedlist', filteritems: ['Black Tea', 'Green Tea', 'Caffe Latte'], datafield: 'productname'}
]
,
localization: getLocalization('de'),
});