How to move row data from one jqgrid
- by user1268130
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