EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
December 01, 2025, 02:22:00 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
>
How to pass a parameter to edatagrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to pass a parameter to edatagrid (Read 14037 times)
jaimi
Full Member
Posts: 121
How to pass a parameter to edatagrid
«
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
Re: How to pass a parameter to edatagrid
«
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
Re: How to pass a parameter to edatagrid
«
Reply #2 on:
September 21, 2012, 10:23:30 PM »
Thanks
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...