I'm trying to get an event when a user selects a row and drops it outside a jquery grid. This is the drop function for a drag/drop happens within the grid, which works perfectly fine -
$(".grid-canvas")
.on("drop", function (e, dd) {
// somecode
});
I'm trying to track the drag & drop happening "ANYWHERE" outside the grid canvas div. but the inverse selection does not seem to be working. I tried this, but not working -
$(".grid-canvas")
.not(this)
.on("drop", function (e, dd) {
alert("outside");
});
I tried this, but it triggers for drag & drops within the grid as well -
$(":not(.grid-canvas)")
.on("drop", function (e, dd) {
alert("outside");
});
Any help appreciated. Thanks.