EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 08, 2024, 05:36:40 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Can I hook into filterrows update event?
Pages: [
1
]
« previous
next »
Print
Author
Topic: Can I hook into filterrows update event? (Read 5272 times)
doev
Newbie
Posts: 22
Can I hook into filterrows update event?
«
on:
December 19, 2013, 02:56:44 AM »
I am using the filterrow extension with remote filters. I need some additional filter field in the toolbar. When the filterrow triggers an update, I need to send the additional filter values. How do this?
What I try first, is to use the "filterStringify" function to inject custom data but maybe there is some better way?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Can I hook into filterrows update event?
«
Reply #1 on:
December 20, 2013, 06:12:00 AM »
The 'onBeforeLoad' event will be triggered before doing a remote filter. Try using this event to add your additonal parameter values.
Code:
$('#dg').datagrid({
onBeforeLoad:function(param){
param.p1 = 'v1';
param.p2 = 'v2';
}
});
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...