Skip to content

ROW DELETE

For event handler function signature means, here an example for jqGridAddEditAfterSubmit

on(eventName: "jqGridAddEditAfterSubmit",
  handler: (
      eventObject: JQueryEventObject,
      jqXhr: JQueryXHR, postdata: Object | string,
      editOrAdd: "edit" | "add") => void)

You will only need to pay attention to the handler part (bold), and ignore the rest.

Basically, it translates to:

function jqGridAddEditAfterSubmitHandler(event, jqXhr, postData, "edit") {
    ...
}

You will most likely only care about postData, which is the row of data to be submitted.

In addition, on https://demo.phpcontrols.com/, please find Set Custom Event Handler demo, in source code, you can see how it is used.

Additional reads:

Feedback and Knowledge Base