I want the event to work only on mouse click, how can this happen?
I use grid, this event is for the general grid. It is triggered when I select a row with the mouse.
$(document).on("rowselect", ".grid", function (e) {
e.preventDefault();
});
but this rowselect is triggered again on an input event
$('#GROUP_MDL_TEX_GROUP_CODE').off('keyup');
$(document).on("keyup", "#GROUP_MDL_TEX_GROUP_CODE", function (e) {
e.stopImmediatePropagation();
$("#GridProduct").jqxGrid('selectrow', 0);
$('#GridProduct').jqxGrid('focus');
});
$("#GridProduct").jqxGrid('selectrow', 0);
This line in the input event triggers the grid rowselect event, I want to prevent this.
I used e.stopImmediatePropagation(); but still “rowselect” is triggered.
thank you
$(document).on("rowselect", ".grid", function (e) {
e.preventDefault();
if(e.type == "keyup")
return false;
When I look with e.type, it shows the triggering of the current event e.type=”rowselect” but I need the type of the previous event, ie e.type=”keyup” but I could not find the previous type
keyup is an example. Many events like this affect the “rowselect” event.