Reload of jqgrid not happening with loadonce:true

前端 未结 3 1343
死守一世寂寞
死守一世寂寞 2020-12-03 19:54

I am newbie in using jqgrid.

While new page load the grid is properly loading the data from database. Afterwards due to loadonce: true the grid is not reloading the

3条回答
  •  一个人的身影
    2020-12-03 20:23

    {
        // edit options
        zIndex: 100,
        url: '/User/Edit',
        closeOnEscape: true,
        closeAfterEdit: true,
        recreateForm: true,
    
        afterComplete: function (response) {
            if (response.responseText) {
                $("#userGrid").jqGrid('setGridParam', { datatype: 'json' }).trigger('reloadGrid');
            }
        }
    }
    

    Worked for me :

    Logic is we are reloading the grid again after the call returns to the JqGrid....try it works

提交回复
热议问题