EasyUI Forum
March 28, 2024, 06:11:25 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: Reload all the data-grids at the same time via single click  (Read 4955 times)
chorauoc
Newbie
*
Posts: 23


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


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


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

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