|
Title: reload edatagrid Post by: jaimi 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 Title: Re: reload edatagrid Post by: jarry 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.
Title: Re: reload edatagrid Post by: jaimi 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?
|