EasyUI Forum
May 16, 2024, 09:00:18 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Refresh Datagrid after Search  (Read 4340 times)
yamilbracho
Jr. Member
**
Posts: 64


View Profile Email
« 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!