Skip to main content

afterPaste

pro version only

This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.

fires after successfully pasting data

Usage​

afterPaste: () => void;

Example

const grid = new dhx.Grid("grid_container", {
columns: [
{ id: "a", header: [{ text: "A" }] },
{ id: "b", header: [{ text: "B" }] },
],
data: [
{ id: "1", a: "A1", b: "B1" },
],
clipboard: true
});

grid.clipboard.events.on("afterPaste", () => {
console.log("Data pasted");
});

Related API: beforePaste

Related article: Work with Clipboard module

Change log:

added in v9.2