EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jega on August 31, 2018, 12:04:24 AM



Title: [SOLVED] filterMatchingType
Post by: jega on August 31, 2018, 12:04:24 AM
How to uset it.

Can't see how i can get this value all/any into the request on server, to make the right SQL


Jesper


Title: Re: filterMatchingType
Post by: jarry on August 31, 2018, 07:01:20 AM
Please look at this example https://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=material-teal&dir=ltr&pitem=Remote%20Filtering%20on%20DataGrid&sort=asc


Title: Re: filterMatchingType
Post by: jega on August 31, 2018, 10:25:08 AM
Byt cant see how I can use filterMatchingType. How to get this value into server as querystring or form data.


Title: Re: filterMatchingType
Post by: jarry on August 31, 2018, 05:59:40 PM
You can attach any parameters when post data to server.
Code:
$('#dg').datagrid({
onBeforeLoad: function(param){
var opts = $(this).datagrid('options');
param.filterMatchingType = opts.filterMatchingType;
}
})


Title: Re: filterMatchingType
Post by: jega on August 31, 2018, 11:10:47 PM
Thanks.

Works like expected

Jesper