我使用jqGrid 4.9.3-预免费(Oleg)。我不使用navbar panel。在Ajax afterclickPgButtons之后,我该怎么做?
我发现了许多相似的主题,但几乎所有的肚脐到面板。 callback I not found
ondblClickRow: function (rowid) {
$(this).jqGrid("viewGridRow", rowid, {
beforeShowForm: function(form) {
$.ajax({
url: 'apt_data.php',
method: 'POST',
dataType: 'json',
data: {id: rowid},
success: function(data) {
$(html_var).insertBefore($('#trv_tm', form));
}
});
},
caption: "Details of the invice"
});
},发布于 2016-01-12 08:23:53
如果您需要接近the code,但使用viewGridRow,则只需将jQuery事件的名称更改为jqGridViewBeforeShowForm和jqGridViewAfterclickPgButtons即可。您可以使用jqGridViewClickPgButtons,它将在jqGridViewAfterclickPgButtons之前触发,但是很少需要它:
$("#list").jqGrid({
// ...
}).bind ("jqGridViewBeforeShowForm", function (e, $form, oper) {
alert("In jqGridViewAfterShowForm");
}).bind ("jqGridViewClickPgButtons", function (e, whichButton, $form, rowid) {
alert("In jqGridViewClickPgButtons: " + whichButton + ", rowid=" + rowid);
}).bind ("jqGridViewAfterclickPgButtons", function (e, whichButton, $form, rowid) {
alert("In jqGridViewAfterclickPgButtons: " + whichButton + ", rowid=" + rowid);
});https://stackoverflow.com/questions/34737161
复制相似问题