Sorry, that was my mistake - i put recIndx as name and trying to copy paste same names- So was receiving this error.
But have another issue -
I have no rows , clicked on add new row - 3 times - i have 3 rows now.
Copied just 1 row in excel and tied to paste it - instead of pasting it in 1 row , it is pasting in all rows.
I did change add row function : because we just want to select the cell not to go to edit mode. - Could you please help me on whats am i doing wrong
{
type: 'button', icon: 'ui-icon-plus', label: 'New Plan', listener:
{
"click": function (evt, ui) {
//append empty row at the end.
var rowData = {};// UnitPrice: 1, ProductID: 34, UnitPrice: 0.2 }; //empty row
var rowIndx = $grid.pqGrid("addRow", { rowData: rowData, checkEditable: true });
$grid.pqGrid("goToPage", { rowIndx: rowIndx });
// $grid.pqGrid("editFirstCellInRow", { rowIndx: rowIndx });
$grid.pqGrid("setSelection", { rowIndx: rowIndx, colIndx: 1 });
}
}
}