Hi.
Here’s a piece of my table:
And here’s what I try to copy from excel:
I use beforePaste hook to format incoming data and to check if cells has “NumericEditor” type with getCellEditor() method. If at least one is not, I want to prevent pasting.
It works fine as long as all the cells are numeric. Here’s the result:
Otherwise, it’s still get pasted. The first column in my example has “DateEditor” type. And when I try to paste there, it’s not prevented even if the hook function looks like this:
beforePaste: function(data, coords) { return false;}
What could be the issue and how can I fix that?