EasyUI Forum
April 28, 2024, 03:32:20 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: [SOLVED] Custom params when filtering  (Read 704 times)
Wojak
Newbie
*
Posts: 48


View Profile Email
« 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;
« Last Edit: February 16, 2024, 05:41:01 AM by Wojak » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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.
Logged
Wojak
Newbie
*
Posts: 48


View Profile Email
« Reply #2 on: February 16, 2024, 05:40:42 AM »

Thanks for the quick code improvements for everyone Grin
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!