Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Nicolas on Sep 25, 2009 06:16
open dhtmlx forum
Problem moving rows from grid to another

Hello,

I am trying to move some rows from one grid to another. The two grids look the same; identical columns.

Drag & Drop between them is working very well.

But we need to be able to move the rows by clicking on buttons, like drag & drop should do.

So i decided to add those buttons and use the moveRow API function. The problem is that nothing happens. I tried many moveRow function with many different parameters but nothing moves and no javascript error (in firebug).

Here is what i tried the last time when trying moving the selected rows from "mygridLibres" to "mygridInscrits" :

var ids = mygridLibres.getSelectedRowId().split(",");
for (i=0; i<ids.size; i++) {
    mygridLibres.moveRowTo(ids[i],ids[i],"move","sibling",mygridLibres,mygridInscrits);
}


Anyone have ideas ?
Answer posted by dhxSupport on Sep 25, 2009 08:27
Unfortunately we cannot reproduce this issue locally. Please check example here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/16_rows_columns_manipulations/19_pro_move_row.html