Author Topic: editable method call when add new row in batch-editing example  (Read 1703 times)

Chaitanya21

  • Newbie
  • *
  • Posts: 17
    • View Profile
Hi admin,

When I add a new row in batch editing version isEditiing($grid) return true. I am facing this issue in the current version(2.2.0) which was not in the previous version.

Code: [Select]
{ "click": function (evt, ui) {
alert("1")
if (isEditing($grid)) {
   return false;
}
alert("2");
                            //append empty row at the end.                           
                            var rowData = { UnitPrice: 0, Discontinued: false }; //empty row
                            var rowIndx = $grid.pqGrid("addRow", { rowData: rowData });
                            $grid.pqGrid("goToPage", { rowIndx: rowIndx });
                            $grid.pqGrid("editFirstCellInRow", { rowIndx: rowIndx });
                        }
Alert 2 will not call.

When I remove isEditing check then new row gets inserted but I had validation in editable function where passed rowData is null.

I am facing issue in the current free version of the grid which was not in the previous version.
Please reply.