Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David Charron on Dec 23, 2008 07:25
open dhtmlx forum
onBeforeDrag text visual representation

From the docs.
onBeforeDrag
Returns:true - confirm drag; false - deny drag;
---> any other text value - value will be used as visual representation of dragged row


function onBeforeDrag_grid(rowId)
{
return "foo";
}

mygrid.attachEvent("onBeforeDrag",onBeforeDrag_grid);

If I try it doesn't display foo. It always displays the first column value of the selected row.

Answer posted by Support on Dec 23, 2008 08:04
Problem confirmed and fixed - please use attached patch ( just add it after standard js files ) to restore functionality. 
Attachments (1)
patch.zip1.41 Kb
Answer posted by David Charron on Jan 05, 2009 06:39
The patch doesn't seam to work.
Please see the attached sample. The grid dragging should display FOO.
Attachments (1)
Answer posted by Support on Jan 12, 2009 03:52
Sorry for inconvenience, the previously provided patch really doesn't solve problem fully. 
Please use updated one , attached to the post. 
Attachments (1)