Skip to main content

pasteError

pro version only

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

fires when an error occurs during pasting (e.g., clipboard is empty or data is invalid)

Usage

pasteError: (error: string) => void;

Parameters:

The callback of the event is called with the following parameters:

  • error - an error message

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("pasteError", (error) => {
console.log("Paste error:", error);
});

Related API: copyError

Related article: Work with Clipboard module

Change log:

added in v9.2