jqGrid内联使用clienArray删除行

时间:2017-01-06 12:08:45

标签: jqgrid

                 $('#jqGrid').navGrid('#jqGridPager',
                      //  the buttons to appear on the toolbar of the grid
                       { edit: true, add: true, del: true, search: false, refresh: false, view: false, position: "left", cloneToTop: false },
                       // options for the Edit Dialog
                       {
                           editCaption: "The Edit Dialog",
                           recreateForm: true,
                           checkOnUpdate: true,
                           checkOnSubmit: true,
                           closeAfterEdit: true,
                          //   afterShowForm: PayTypeValidation,
                           errorTextFormat: function (data) {
                               return 'Error: ' + data.responseText
                           }
                       },
                       // options for the Add Dialog
                       {
                           closeAfterAdd: true,
                           recreateForm: true,
                          // afterShowForm: PayTypeValidation,
                           errorTextFormat: function (data) {
                               return 'Error: ' + data.responseText
                           }
                       },
//delete
{
 errorTextFormat: function (data) {
                                   return 'Error: ' + data.responseText
                               }
}
});

上面是添加和编辑的代码,但删除部分不起作用,请建议使用clientarray内联删除网格中行的代码

0 个答案:

没有答案