Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rene on Dec 17, 2009 14:42
open dhtmlx forum
Drag and Drop not working from grid to grid

I am getting the following error message: Microsoft JScript runtime error: Out of stack space

I have included both the dhtmlxgrid_drag.js & dhtmlx/ext/dhtmlx_extdrag.js. I also have .enableDragAndDrop(true) enabled on both grids.

I want the ability to either drag n drop between grids and the click a button to move the selection from one grid to another. Below is the code.

....Has values....
//User to add filters
function moveFilterLeft() {
//Grab all selected values
var ids = flGrid.getSelectedId().split(',');
//For each value selected move to Right Filter selection grid
for (var i = 0; i < ids.length; i++) {
flGrid.moveRow(ids[i], "row_sibling", flGrid2.getSelectedId(), flGrid2);
}
}

....No values until selections are moved to this grid....
//Used to remove filter selection
function moveFilterRight() {
//Grab all selected values
var ids = flGrid2.getSelectedId().split(',');
//For each value selected move to Left Filter selection grid
for (var i = 0; i < ids.length; i++) {
flGrid2.moveRow(ids[i], "row_sibling", flGrid.getSelectedId(), flGrid)
}
}

Thank you for your help.
Answer posted by dhxSupport on Dec 18, 2009 02:41
Unfortunately we cannot reproduce this issue locally. Please provide us complete example where we can reproduce it.