Hi Team,
The video demo provided here is not related to drag and drop.
Please find my screenshots below with drag and drop behavior
Query 1:
The row with hierarchy of children if dragged above it only shows expandle icon left to it, but not the children:
Picture 1: showing existing hierarchy of record PM019 having 3 children
Picture 2 showing expanded icon when PM019 is placed above Pm015:
Query 2
Addition of record to a row which dont have children
Picture 1 Addition of record with Name : node1 as a child of PM007
Picture 2: Dragging and trying to make it as child of PM024, it becomes child but PM007 is lost and node1 will also be present in the same location
Query 3:
I am trying to add a record to a row which already has children and then trying to drag that record across treegrid, but I am not able to drop it gets stuck at one position,
but if I click on outside of treegrid it disappears not adding anything to it.
Picture 1:Addition of record with Name : "node2" as a child of PM002
Picture 2: dragging of node2 is stuck:
Picture 3: if the dragged position(PM012) node is added one more record with name "node3"
node2 still present at first parent PM002 with expandable icon
node3 getting added in middle
node2 appears back at parent PM012 with expandable icon

My code implementation goes as below:
<div class="control_wrapper">
<ejs-treegrid [dataSource]='data' #treegrid [treeColumnIndex]='1' id="default"
parentIdMapping='{{treeConfiguration.pidAttribute}}' idMapping='{{treeConfiguration.idAttribute}}'
(dataBound)='onDataBound()' [editSettings]='editSettings' [allowFiltering]="true" [toolbar]='toolbarOption' [allowSorting]="true" [filterSettings]="filterSettings"
(rowSelected)="rowselected($event)" (rowDataBound)='rowBound($event)' (dataBound)="onTreeReady()" [allowRowDragAndDrop]='true'>
<e-columns>
<e-column field='Name' headerText='Name' width='60' >
<ng-template #template let-data="">
<i class="{{ data['iconClass'] }}" id="icontooltip"
title="{{data[treeConfiguration.tooltiptext.icon]}}"></i>
<span class="treeName" id="nodetooltip"
title="{{data[treeConfiguration.tooltiptext.node]}}">{{data[treeConfiguration.displayAttribute]}}</span>
<div class="nodeicon">
<span class="e-icons e-add" (click)="addItem(data)"></span>
<span class="e-icons e-menu" (click)="btnclick($event)"></span>
</div>
</ng-template>
</e-column>
<e-column field='ID' headerText='Node ID' width='20' isPrimaryKey='true' ></e-column>
</e-columns>
</ejs-treegrid>
<ejs-contextmenu #contentmenutree id='contentmenutree' target='#default' [items]="menuItems" (beforeOpen)='beforeopen($event)' (select)='menuclick($event)'>
</ejs-contextmenu>
</div>
Add record functionality is also attached, Kindly check and let me me know what is the issue.
Thanks in advance
Regards,
Pooja K
Attachment:
syncfusionAttachment_1e0eadd7.zip