EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Wojak on February 08, 2024, 10:50:02 AM



Title: [SOLVED] Custom params when filtering
Post by: Wojak on February 08, 2024, 10:50:02 AM
Can another parameter be added to the "myLoadFilter" function in the "datagrid-filter.js" file without breaking other functions? Because I noticed that when filtering, if I had custom params before, it does not show up in the "onLoadSuccess" function in the datagrid during filtering. I used this option because when downloading data to the datagrid, I could also send other parameters to the inputs at the same time.

Something like this. It starts at 666 line in file.
Code:
data = opts.filterMatcher.call(target, {
total: state.filterSource.total,
rows: state.filterSource.rows,
footer: state.filterSource.footer||[]
});
data.params = data.params; // Here new line of code
data.filterRows = data.rows;


Title: Re: Custom params when filtering
Post by: jarry on February 12, 2024, 06:33:27 AM
This issue has been solved. Please download the latest version from https://www.jeasyui.com/extension/datagrid_filter.php.


Title: [SOLVED] Custom params when filtering
Post by: Wojak on February 16, 2024, 05:40:42 AM
Thanks for the quick code improvements for everyone ;D