EasyUI Forum
November 02, 2025, 04:52:10 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: datagrid reload  (Read 14835 times)
jaimi
Full Member
***
Posts: 121


View Profile
« on: February 27, 2015, 03:32:02 AM »

I want to reload the whole site after insert oder update a row to a edatagrid.
How to?
THX, Jaimi
Logged
jjosotoro
Newbie
*
Posts: 4


View Profile
« Reply #1 on: March 04, 2015, 07:59:17 AM »

hello.

Use the onSave event to execute code after saving a record in edatagrid.

Code:
$('#MyEDatagrid').edatagrid({
  onSave:function(index,row){
    window.top.location.reload(); //reloads the entire page
  }
});

or you coudl just reload the edatagrid

Code:
$('#MyEDatagrid').edatagrid({
  onSave:function(index,row){
    $('#MyEDatagrid').edatagrid('reload');
  }
});


hope that helps
« Last Edit: March 04, 2015, 08:01:19 AM by jjosotoro » 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!