EasyUI Forum
May 14, 2024, 12:20:16 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: auto refresh periodicaly of datagrid  (Read 34607 times)
putusundika
Newbie
*
Posts: 13


View Profile Email
« on: July 10, 2012, 10:05:50 AM »

how can I make grid auto refresh every 15 sec ?
i want to display almost real time list of order update without pressing button

regards
putu
Logged
anton.dutov
Newbie
*
Posts: 27


View Profile
« Reply #1 on: July 11, 2012, 11:15:54 AM »

Quote
$(function() {
  function grid_refresh() {
    $('tbl_x').datagrid('reload'); // reload grid

    setTimeout(grid_refresh, 15000); // schedule next refresh after 15sec
  }

  $('tbl_x').datagrid({
    ...
  });
  grid_refresh();
});
Logged
putusundika
Newbie
*
Posts: 13


View Profile Email
« Reply #2 on: July 12, 2012, 06:24:22 AM »

awesome  Cheesy
thanks

regards
putu
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!