EasyUI Forum
December 01, 2025, 01:28:09 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: How to pass a parameter to edatagrid  (Read 14032 times)
jaimi
Full Member
***
Posts: 121


View Profile
« on: September 13, 2012, 04:11:42 AM »

I created a edatagrid via javascript plus a toolbar via markup for the search as like as in the tutorial.

After clicking the search button the values are passed to the php for the reomte query as described.
I would like to pass allready known parameters on first build of the edatagrid without clicking the search button.
How can I do that?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 13, 2012, 06:51:03 PM »

The 'queryParams' property can be used to send parameters to server when calling an ajax request.
Code:
$('#dg').edatagrid({
  queryParams:{
    p1: 'value1',
    p2: 'value2'
  }
});
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #2 on: September 21, 2012, 10:23:30 PM »

Thanks
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!