EasyUI Forum
September 14, 2025, 01:10:44 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: reload edatagrid  (Read 7680 times)
jaimi
Full Member
***
Posts: 121


View Profile
« on: October 30, 2014, 04:29:16 AM »

Hi, the reload won't work.

I have the following code:

var TablePager = $('#edgGLL').datagrid().datagrid('getPager');   
 TablePager.pagination({
   showPageList: false
  ,showRefresh : false
  ,displayMsg  : '{from} bis {to} von {total} Datensätzen'
  ,buttons     :[
    {iconCls:'icon-add'   ,handler:function(){addRecord();}}
   ,{iconCls:'icon-edit'  ,handler:function(){editRecord();}}
   ,{iconCls:'icon-remove',handler:function(){removeRecord();}}
   ,{iconCls:'icon-save'  ,handler:function(){saveRecord();}}
   ,{iconCls:'icon-undo'  ,handler:function(){undoRecord();}}
   ,{iconCls:'icon-reload',handler:function(){reloadTable();}}
  ]
 });//TablePager

It works for all functions but the reload:
function reloadTable(){
  $('#edgGLL').datagrid('reload');
 }//reloadTable 

what's wrong?

thanks
Jaimi
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: October 30, 2014, 07:38:36 AM »

Please check if the 'url' property of datagrid is declared correctly. If no 'url' property exists, the 'reload' method does not do anything.
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #2 on: October 31, 2014, 06:26:02 AM »

as the load works, the reload should also work, because of the same url, or is there another?
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!