EasyUI Forum
May 07, 2024, 11:37:55 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: Can I hook into filterrows update event?  (Read 5269 times)
doev
Newbie
*
Posts: 22


View Profile
« 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


View Profile Email
« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!