Pasting in datatables

Hey.

http://webix.com/snippet/e12f7e33

Is there a way to post into a datatable without having to focus on a row in that datatable?

In the snippet I’ve posted, onPaste will only be called when pasting while having focus on that single row. If I press on the white-space (still part of the datatable), pasting won’t work anymore.

Default behavior requires a focused data item, as the new item should get its position (index). Also, the data can be overridden.

You can catch the native html click event and set clipboard focus manually:

http://webix.com/snippet/52292dc6

onPaste will fire and text will be stored as a parameter, but then you’ll need to write a custom pasting method.

Works perfectly, cheers.