api - ag-grid-react accessing the corresponding row of a chosen column value -
i'm using ag-grid-react , access other column values of row based on value of 1 of columns. possible? should easy , direct method but, strangely, i've found no accurate answer in ag-grid-react documentation.there multiple methods of api , columnapi there no clear link enables corresponding row based on value of 1 of columns!
i may missing here, appreciate help!
thank in advance!
i guess you're looking filter entire rows based on column value. firstly must enable filtering in grid options use enablefilter: true
in gridoptions.
next, call method
gridoptions.api.foreachnodeafterfilter( function(rownode, index) { console.log('node ' + rownode.data.athlete + ' passes filter'); });
this enable iterate through nodes after filtering , can access column on node using rownode.columnname
.
Comments
Post a Comment