EasyUI Forum
September 14, 2025, 12:44:43 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: datagrid filter - how to reload on: June 13, 2014, 05:22:39 AM
Please try to download the newest 'datagrid-filter.js' file from http://jeasyui.com/extension/datagrid_filter.php

That seems to have fixed it, thanks!
2  General Category / EasyUI for jQuery / datagrid filter - how to reload on: June 12, 2014, 07:29:47 AM
I setup my first datagrid like the following:

Code:
  <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:

Code:
$('#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.

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!