Copy grid to clipboard error

When I try to use gridToClipboard() I get the error message “Object doesn’t support this property or method”.

Any advice appreciated - thanks, Paul

Grid version = 2.5

These are the files I am using:

This is the button with the event for copying the grid:

Copy To Clipboard

This is the copyData function and grid initialisation:

Such issue may occur if dhtmlxgrid_nxml.js is not attached to your page.

Thanks for your reply, I have corrected the problem with “property or method” (typo in the filename).

I now get the error: ‘childNodes’ is null or not an object.

Any ideas or suggestions appreciated - thanks, Paul

Please open ticket at support.dhtmlx.com/ and provide us complete demo where issue can be reconstructed

Unfortunately I cannot provide a live demo for the problem.

I can confirm that the demo code in the examples works fine. I can also confirm that the clipboard function works from a selection.

I do use JQuery within the same page - perhaps that is the issue?

The only other difference - is that I’m also using the dynamic loading from a database with paging.

Thanks,

Paul

gridToClipboard() method is incompatible with dynamic loading and paging. This method require all rows to be rendered.

Can you tell me copyBlockToClipboard method of grid also have the same issue while copying data from grid with pagination?

copyBlockToClipboard() method works well with paging.