EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Berzy on July 15, 2014, 01:13:22 AM



Title: DataGrid + DataGrid Filter Row: how to get the filter?
Post by: Berzy on July 15, 2014, 01:13:22 AM
Hi,
I have a DataGrid + DataGrid Filter Row (datagrid-filter.js) and work in c#.

My application successfully do filter the data etc etc. Now the client want an excel export of the FILTERED data... but I don't know how to get the filterrules.

Thank you!

Berzy


Title: Re: DataGrid + DataGrid Filter Row: how to get the filter?
Post by: stworthy on July 15, 2014, 01:38:11 AM
The filter rules can be get from the 'filterRules' option.
Code:
var dg = $('#dg');
var rules  = dg.datagrid('options').filterRules;
console.log(rules)


Title: Re: DataGrid + DataGrid Filter Row: how to get the filter?
Post by: Berzy on July 15, 2014, 05:57:04 AM
Many thanks!