Drop on dynamic datatable

Hi Webix team,

If I have multiple datatable with dynamic id’s and same class. And I want to apply drop event on datatable so how can I take id in such case.

I am doing like:

var inputCountOfGrid = $(".reportTable"); // Total no of grid with particulat class.

for (var i = 0; i < inputCountOfGrid.length; i++){

	var idOfDropOfGrid = inputCountOfGrid[i].id;

	$$(idOfDropOfGrid).attachEvent("onBeforeDrop", function(context){  
		alert(1)
	});
}

But I am not able to apply onBeforeDrop in above case.

var idOfDropOfGrid = inputCountOfGrid[i].attr("view_id");

Thanks

But I have one more doubt in save scenario with multiple grid with dynamic id’s and with dynamic no. of columns with dynamic cols.

If I want to add drop event on dynamic table and in that I want to target, particular column only.

check conditions in event and return false if required.