jeudi 11 mai 2023

JqGrid prevent checkboxes from double clic event

I'm using a JqGrid with multiselect : true and i'm using double clic event to launch an edit function.

ondblClickRow: function (rowid) {
                var rowData = $(this).getRowData(rowid);
                document.location.href = "../record/" + rowData['id']
            },

But when it comes to select multiple rows, if you select or deselect the checkbox too quickly it launches the edit function (which I do not want).

How can prevent the dblclick event on the checkboxes and allow it anywhere else on the rest of the row ?




Aucun commentaire:

Enregistrer un commentaire