EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: yamilbracho on August 29, 2015, 07:14:04 PM



Title: Refresh Datagrid after Search
Post by: yamilbracho on August 29, 2015, 07:14:04 PM
Hi
I add search function in my datagrid according 'Add search functionality in DataGrid' tutorial.
In my php code, i checked my quey is filtering the database and bring only filtered records. However my grid does not get refresh with the filtered information.
The javascript code is :

Code:
 doSearch: function() {
        $('#dg').datagrid('load', {
            itemSearch: $('#txtSearchNombre').val()
        });
    }


And my php code return the appropiate JSON
{"total":1,"rows":[{"id_cliente":"10","tx_cliente":"SOSMedi"]}

because i filtered by cliente name starting with S...

Is there something else to do ?

TIA,
Yamil