Function deleteRow return false TreeGrid

I have a TreeGrid and DataView in my page, the DataView has images elements

Operations between TreeGrid and DataView

1.- Drag and drop elements from DataView to TreeGrid, this Ok
2.- Drag and drop elements from TreeGrid to DataView, this OK

download/file.php?mode=view&id=10222

3.- I sometimes need clean the TreeGrid and DataView, for those i use function clearAll() for TreeGrid and DataView
4.- Populate DataView again with images elements
5.- Drag and drop elements from DataView to TreeGrid, this Ok
6.- When i Drag and drop elements from TreeGrid to DataView, the row on TreeGrid not delete and it show underline, and the element was moved to the dataView.

download/file.php?mode=view&id=10223

This my code

DataView

imgDataView = new dhtmlXDataView({
    container: "gridview",
    type: {
        template: "#message#<br/><span><img src='" + url + "?UID_KEY=#pathM#'/></span><br/>#indice#",
        template_loading: "Loading...",
        width: 120,
        height: 175,
        margin: 0,
        padding: 0
    },
    drag: true,
    select: "multiselect"
});

imgDataView.attachEvent("onBeforeDrop", function (context,ev){
        
    if(context.from === docTreeGrid){
        
        if(docTreeGrid.deleteRow(context.source)){
            
            this.add({
                indice:ind[1],
                message:"...",
                pathF:pF,
                pathM:pM,
                angulo:val6,
                expdts:val13,
                idImg:idI
            }, this.indexById(context.target||this.first()));

            return false;     
            
        }else{
            return false;
        }
        
    }

    return true;
});




Please, make sure that you’ve enabled the second attribute of the setUpdateMode() method.
For example:
dp.setUpdateMode(“cell”, true);
docs.dhtmlx.com/api__dataprocess … emode.html

I put setUpdateMode(“cell”, true) but when i drag and drop elements it is show me follow error

download/file.php?mode=view&id=10225

Originally i have setUpdateMode(“off”, true);


Could you please, share with a demo link or provide with a complete demo, where the problem can be reconstructed.
Here you can find a tutorial about creating a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

The link

104.200.16.188:8080/eREW/EW/jsp/EW000000.jsp

Steps for reply error

1.- Press the button play


2.- Populate DataView


3.- Drag and drop DataView to TreeGrid


4.- Press the button “i”

5.- Drag and drop TreeGrid to DataView

6.- Press the button Soltar

7.- Again press the button play

8.- Againg drag and drop DataView to TreeGrid

9.- Drag and drop TreeGrid to DataView, ¡here is the problem!

Main js is

eREW00.js

Funtions are

initDtaView()
initTreeGrid()
liberar()

Thanks

I apologize for the delay.
Could you please, update your demo as now it corresponds to the described one so it cannot be checked.

The error happens when the TreeGrid is reload with new data

Steps

Load tree grid (it’s ok)
Load dataview (it’s ok)
Drag and drop elements from DataView to TreeGrid (it’s ok)
Drag and drop elements from TreeGrid to DataView (it’s ok)
I use the function clearAll for DataView and TreeGrid (it’s ok)
Load tree grid (it’s ok)
Load dataview (it’s ok)
Drag and drop elements from DataView to TreeGrid (it’s ok)
Drag and drop elements from TreeGrid to DataView (error when the treegrid is reload)

Thanks

Unfortunately your link is not actual or it not corresponds to the described steps.


Please, try to update your link or the steps to reproduce the problem.