I setup my first datagrid like the following:
<table id="fishdg" title="DataGrid" style="width:700px;height:250px" data-options="
singleSelect:true,
url:'/get_fish.php'
">
<thead>
<tr>
<th data-options="field:'id',width:80">ID</th>
<th data-options="field:'model',width:100">Model</th>
</tr>
</thead>
</table>
<script type="text/javascript">
$(function(){
var dg = $('#fishdg').datagrid();
dg.datagrid('enableFilter');
});
</script>
This works fine for loading data and client-side filtering. But, I have added functionality for users to edit/delete rows following the example CRUD Applicaiton code.
when using datagrid-filter, I am unable to reload data from server using:
$('#dg').datagrid('reload');
Now, the above WILL work if I set remoteFilter to true. But, I don't want to do filtering at the server side, I want to keep filtering local.