ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: kshipra on June 13, 2018, 12:11:27 pm

Title: filtering and searching row issue
Post by: kshipra 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.