score:2
not sure if you find an answer already, but like pavan mentioned in the comment - you can checkout the gridapi.redrawrows() function described in the ag-grid doc in this link https://www.ag-grid.com/javascript-grid-refresh/#redraw-rows.
to achieve your goal here, you need to call this function after you set your highlightrowdata state. as you are using hook it may look like this:
useeffect(() => {
// assume you have a gridapi reference here. if not yet, maybe you can hold it in a ref by useref
gridapi.redrawrows();
}, [highlightrowdata]);
Source: stackoverflow.com
Related Query
- Change state dynamically based on the external Internet connectivity - React (offline/online)
- ag-grid (react) change rowStyle dynamically based on state
- React change state based on select option
- Dynamically render react component based on parent state
- Dynamically change styled component based on state AND index
- React child state update based on parent's prop change
- Span grid rows and columns dynamically for an image based on the image file actual height and width ( React )
- Change React component visibility based on the state of another component
- Change the state based on the previous state with React Hooks
- React js - Dynamically Change the style Maxheight of element based on dynamic content
- Best way to change React state at <App /> level based on sub-components
- React change Input elements based on state variable
- Updating React Component state Dynamically based on server state
- Change state from dynamically created child component - React
- React state changing unexpectedly when trying to dynamically change state
- React - How to change child state based on click event to parent
- dynamically change input type based on boolean state Reactjs
- Dynamically change class based on current index in a react component. (object.map)
- React / Redux - Create XHR request based on state change
- Change CSS property dynamically based on Update in redux state using ReactJs
- What is the best method to change React State based off of State?
- Dynamically add classes on based on state value and also change the children content based on parent's state change
- change input based on props or state in react
- Dynamically update value based on State in React
- React renders based on state change but not on prop change?
- How can I change React state from nested dynamically created components?
- How to make a react class component retain its state after login and change available routes based on the state currently available in the component?
- How can I change the state of one React component based on the value of its sibling?
- Change class of dynamically generated components in REACT without manually creating a separate state for each?
- How to dynamically change CSS/highlight button elements based on filtered data in React JS?
More Query from same tag
- How to send React.js files with express .senfFile?
- React - Is there a way to check when page is done loading after route change?
- How to toggle div focus using up and down key in react component (typescript + css)
- Why useMemo does't memoizes value
- Uncaught Error: Objects are not valid as a React child (found: object with keys {message})
- ReactJS: looping through object
- Jest Fails on import and export
- React JS: Loop through a multi-dimensional array and determine/load the correct component
- How do I test with jest that a list of Enums in TypeScript has all the string values?
- Django Rest Framework + React rest hooks CORS error
- looping array with ES6 in React/Redux
- ReactJS + Redux subscribe method mess
- How to remove eslint Parsing error on ES6 export statement
- React map - How to properly handle objects when they have different properties
- How can I send messages to my queue and a post request?
- useEffect has a missing dependency that's a const function
- React Notiifcation Hook Stuttering
- Adding Keys To Child Element In React
- ReactJS component won't update after first API call
- Map react data to single array
- Cannot increment value after successful check in React
- Confused with destructuring assignment within JSX syntax
- How to style a checkbox after it is checked?
- How to limit the number of links allowed for a React-Diagram node
- how to prevent redux generate sub object of same property after dispatch an action
- React can't find 3rd party scripts I've included
- React-admin how show notification about error from server
- Ternary inside of map returning no results
- Why isn't my Dropdown styled in React Semantic UI?
- How to import a javascript module with JSX, in browser?