ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: jplevene on July 20, 2025, 04:01:10 am

Title: Equivalent of getNode(ID) for a normal grid
Post by: jplevene on July 20, 2025, 04:01:10 am
In a treeGrid I can get a node using getNode() and passing the ID value in the rowData.

The only way to do this I can see on a normal grid is to create a lookup object {"1234":row, ...} once the data has loaded from the remote source.  Is there a better way?
Title: Re: Equivalent of getNode(ID) for a normal grid
Post by: paramvir on July 21, 2025, 07:28:04 pm
There's no equivalent in plain grid.

rowData can be obtained from id as:

Code: [Select]
const row = grid.option('dataModel.data').find(r => r.id === '1234');

for performance-critical code, creating a lookup object as mentioned by you is most efficient way to get row data from id.