JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/datagrid-dnd.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/treegrid-dnd.js"></script>
<script>
$(function(){
$('#win').window({
width:600,
height:400,
modal:true
}).window('move',{
top:10,
left:180
});
})
</script>
</head>
<body>
<div class="easyui-panel cc" title="My Panel" style="width:700px;height:500px;">
<table id="tga" class="easyui-treegrid" data-options="
fit:true,
data: [{id:1,conditiona:'A',children:[{id:2,conditiona:'B'}]},{id:3,conditiona:'C'}],
border:false,
rownumbers: true,
dropAccept:'.cc tr[node-id]', idField: 'id',
treeField: 'conditiona',
onLoadSuccess: function(row){
$(this).treegrid('enableDnd', row?row.id:null);
var rows = $('#tga').treegrid('getChildren');
$.each(rows,function(i,row){
row._unique = 'tga';
})
},
onDragEnter:function(targetRow,sourceRow){
console.info(targetRow._unique);
console.info(sourceRow._unique);
if(sourceRow.conditionb){
return false;
}
},
">
<thead>
<tr>
<th data-options="field:'itemid',width:50">itemid</th>
<th data-options="field:'conditiona',width:300">conditiona</th>
</tr>
</thead>
</table>
</div>
<div id="win">
<table id="tgb"...