Hi,
Is it possible to prevent a paste event in “cellbeginedit” of a jqxgrid?
I would allow copying and limit pasting.
For this I set the clipboard attribute of the jqxgrid to true.
I implement the cellbeginedit of all columns with this function to limit input:
var cellbeginedit = function (row, datafield, columntype, value) {
// some code
if (condition) return false;
}
This works well except when we pasting data.
So I also implement the cellbeginedit of my jqxgrid like that:
$('#jqxgrid').on('cellbeginedit', function (event) {
var args = event.args;
// some code
// ...
if ( condition) {
// event.preventDefault() ;
// return false ;
}
});
I’m catching the past event, i can detect if my condition is true but I’m unable to “prevent” the paste event.
I would like to bee able to prevent the cellbeginedit event and cancel the change of the cell value.
Is it possible ?
Could you help me on this?
Thank you.