Check documentation for the latest version of dhtmlxSuite rowToDragElement DHTMLX Docs

rowToDragElement

redefine this method in your code to specify how grid row values should be displayed during the dragging

void rowToDragElement(string|number id);
idstring|numberthe id of the grid's row

Example

myTreeGrid.rowToDragElement=function(id){
    //your code here
 
    // prepare a text string
    var text = "<img src = 'some.gif'> - "+myTreeGrid.cells(id,0).getValue(); 
    return text;
}

Back to top