I am dragging a node from Tree to TreeGrid and it is adding that node as last node to the selected parent in Treegrid. I want to add that dragged node as first child of parent in Treegrid. Is is possbile? If yes, please suggest a way.
Thanks in advance.
There is no simple way to achieve such functionality.
You can use
It didnt work for me. So I used alternate way. I created new method to move up the newly added row.
var strParentId = mygrid.getParentId(rowId);
var arrTemp = mygrid.getAllSubItems(strParentId);
if(arrTemp != “”)
arrTemp = arrTemp.split(",");
for(var i = 0; i < arrTemp.length; i++)
Anyways thanks for ur reply.