Hi.
Cannot find any possibility to refresh row or cell in TreeGrid after drag and drop. To reflect id gotten from server side. Temporary id (var testid) stays there.
My code:
gridDesign.attachEvent(“onDrag”,function(sid,tid,sobj,tobj){
dp_gridDesign.setUpdateMode(“cell”,true);
if (sobj.object && (sobj.object == myDataView2 || sobj.object == myDataView3 || sobj.object == myDataView4)){
dp_gridDesign.setUpdateMode(“cell”,false);
if (sobj.object == myDataView2) { var d = myDataView2.get(sid); var sc = 1; }
if (sobj.object == myDataView3) { var d = myDataView3.get(sid); var sc = 2; }
if (sobj.object == myDataView4) { var d = myDataView4.get(sid); var sc = 4; }
var testid = gridDesign.uid();
gridDesign.addRow(testid,[testid,d.name,sid,gridDesign.cellByIndex(0,0).getValue()],0,tid,sc+"00000s.png");
dp_gridDesign.setUpdated(testid,true,"inserted");
dp_gridDesign.sendData();
return true;
}
return true;
});