EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: zzdfc on May 22, 2017, 07:52:05 AM



Title: How to get all parameters posted to server by datagrid,please?
Post by: zzdfc on May 22, 2017, 07:52:05 AM
How to get all parameters posted to server by datagrid,please?


Title: Re: How to get all parameters posted to server by datagrid,please?
Post by: stworthy on May 22, 2017, 05:38:33 PM
The datagrid will post the parameters that defined in 'queryParams' property and the 'rows','page','sort', 'order'. You can retrieve them from your background server.


Title: Re: How to get all parameters posted to server by datagrid,please?
Post by: zzdfc on May 22, 2017, 06:51:40 PM
How to retrive sort、rows from front end ,please?


Title: Re: How to get all parameters posted to server by datagrid,please?
Post by: stworthy on May 23, 2017, 01:26:30 AM
Before sending these parameters to server, you can retrieve and modify them.
Code:
$('#dg').datagrid({
  onBeforeLoad: function(param){
    console.log(param);
  }
});