jQGrid reload grid after save inline button click

前端 未结 1 1042
栀梦
栀梦 2021-01-16 09:18

I was looking here to find out how to reload grid after save row:

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing

JQGrid setRowData After i

相关标签:
1条回答
  • 2021-01-16 10:04

    It seems to me, that you should just include $("#Grid1").trigger("reloadGrid"); or $("#Grid1").trigger("reloadGrid",[{current:true}]); in the hideDelIcon function:

    hideDelIcon = function (rowid) {
        setTimeout(function () {
            $("tr#" + $.jgrid.jqID(rowid) + " div.ui-inline-del").hide();
            // the next line should be added
            $("#Grid1").trigger("reloadGrid",[{current:true}]);
        }, 50);
    }
    
    0 讨论(0)
提交回复
热议问题