Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sriram on Mar 17, 2009 08:16
open dhtmlx forum
Drag Image for dhxGrid

Like dhtmltree, i would like to drag the grid with a image on left side and text on right side. The image is from the current row. How to do that?. If I select multiple rows, it should show multiple rows with respective images on left.
Answer posted by dhxSupport on Mar 17, 2009 08:58

You can use "onBeforeDrag" event and return custom valuewill be used as visual representation of dragged row.

Also you ca use rowToDragElement method to achieve necessary behavior

case 1
grid.rowToDragElement=function(id){
  return this.cells(id,0).getTitle();  
}

case 2
grid.rowToDragElement=function(id){
  return this.cells(id,1).getValue();  
}

Answer posted on Mar 17, 2009 09:25
If you refer the attached image, while dragging, you can see the contets of dragged rows in windows explorer, like the same how to achive using dhtmlxgrid. I have tried to modify dhtmlx_extdrag.js, but no sucess.
Attachments (1)
drag.PNG34.35 Kb
Answer posted by dhxSupport on Mar 17, 2009 10:12
Unfortunately dhtmlxGrid hasn't appropriate method to do that. If such requirement is critical in your case - you can contact sales@dhtmlx.com and request customization of components.