Author Topic: filtering and searching row issue  (Read 1637 times)

kshipra

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 94
    • View Profile
filtering and searching row issue
« on: June 13, 2018, 12:11:27 pm »
I need to update non-editable cells in grid with response from updateList.

Code: [Select]
for (var i = 0; i < jsonRsp.updateList.length; i++)
{
       //searching for row with matching Id
      var rowList = $grid.pqGrid("search", { row: { Id: jsonRsp.updateList[i].Id } });

      var rowIndx = rowList[0].rowIndx;
      var updatedAt = jsonRsp.updateList[i].Updated;

      //updating the updatedat date
      $grid.pqGrid("updateRow", { rowIndx: rowIndx, row: { 'Updated': updatedAt} });
}

if rows are filtered the grid searches only on current filtered rows.  updateList can have data from previous filters  edits in bulk update.
So with current code,  rows with previous filter are not found by search method.  I need to search all rows in grid irrespective of filter to get row by Id which is primary key.