EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 13, 2024, 02:31:28 AM
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
>
General Discussion
>
Reload all the data-grids at the same time via single click
Pages: [
1
]
« previous
next »
Print
Author
Topic: Reload all the data-grids at the same time via single click (Read 5085 times)
chorauoc
Newbie
Posts: 23
Reload all the data-grids at the same time via single click
«
on:
July 12, 2017, 10:43:20 AM »
Hello,
I need a way to reload all the data grids (let say 4) with different ids at the same time via single click, how can i achieve this
thank you
chora
Logged
Pierre
Sr. Member
Posts: 439
Re: Reload all the data-grids at the same time via single click
«
Reply #1 on:
July 12, 2017, 01:26:57 PM »
Something like this:
<a href="#" onclick="myFunction();" class="easyui-linkbutton">Update all 4 grids</a>
JS:
function myFunction(){
updateg1();
updateg2();
updateg3();
updateg4();
}
function updateg1(){
// your code to update grid 1
}
same way for other 3 grids ...
Logged
chorauoc
Newbie
Posts: 23
Re: Reload all the data-grids at the same time via single click
«
Reply #2 on:
July 13, 2017, 02:29:43 AM »
Hi Pierre,
yes i know this way but my problem is i have lots of datagrid and i have to add one by one into a function as you said, but i want to a method that will target all the datagrid at ones like css selectors
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...