jqgrid reload grid after successful inline update / inline creation of record

后端 未结 5 2301
粉色の甜心
粉色の甜心 2020-12-05 01:03

I\'m wondering how I can trigger reloadGrid after an inline edit of a row.



        
5条回答
  •  暖寄归人
    2020-12-05 01:32

    Ок, now copy-paste solution that works at least for me

     onSelectRow: function(id){
        $('#grid').jqGrid("editRow", id, true, '', '', '', '', reloadTable);
     },
     // more confir
    
     // reload table after submit. Put it somewhere in your JS file
      function reloadTable(result) {
        $('#grid').trigger("reloadGrid");
      }
    

提交回复
热议问题