How to move row data from one jqgrid

Posted by user1268130 on Stack Overflow See other posts from Stack Overflow or by user1268130
Published on 2012-11-18T04:54:31Z Indexed on 2012/11/18 4:59 UTC
Read the original article Hit count: 459

Filed under:
|

I am trying to move row from one grid to another grid.I am able to add the row to 2nd Grid but not able to delete row in the 1st grid.

Here is my code:

var RowList;
RowList = $('#questions_list').getGridParam('selarrrow');
for (var i=0, list=RowList.length; i<list; i++) 
{
var selectedId = RowList[i];

var selectedData = $('#questions_list').jqGrid('getRowData', selectedId );

$('#selectedQuestions_list').jqGrid('addRowData', selectedId , selectedData );

$('#questions_list').jqGrid('delRowData',selectedId );
}

But I am not able to delete row properly,when I add delrowdata,I am not able to add properly.Can any one help me in the code.Thanks in Advance

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jqgrid