Drag and drop issue

Hi,
I have an issue with d n d functionality in grid.
I have two grids gridobj1 and gridobj2.
There are 5 rows in gridobj1.
gridobj2 is empty.

I dragged 2 rows from gridobj1 to gridobj2.
then gridobj2.getAllRowIds() is giving 2.
then i removed those 2 rows from grid2 nd added back to grid1
then gridobj2.getAllRowIds() has given me 0.
then i dragged again 2 rows from grid1 to grid2.

But now gridobj2.getAllRowIds() giving me 0 even there are 2 rows in that grid.

Please any one help me.

Thanks,
Naresh Adla.

Unfortunately the issue cannot be reproduced locally.
Please, try to update the version of your dhtmlxgrid.
If issue still occurs for you - please, provide with a complete demo, where the issue can be reproduced locally.

Hi sematik,
Please find the attached demo.
Open index2.html file and click on get selected rows button it will give u an empty alert because we dnt have any rows in right grid .

Then drag some rows from left grid to right grid then click on the button it is still giving the empty alert even i have some rows in right grid.

How can i resolve this issue?

Thanks,
Naresh Adla.

Demo:
Demo.zip (827 KB)

You need to clear the filter cache for correct adding/deleting rows in your grid:

tb.attachEvent("onClick",function(){ selectedValidationsGrid.filterBy(0,""); selectedValidationsGrid._f_rowsBuffer = null; //clear cache alert(selectedValidationsGrid.getAllRowIds()); });