You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
When changing the domLayout either via the prop or the api method setDomLayout, the divs enclosing the data do not update dynamically when the change is made, only when the grid is first rendered on the page.
The text was updated successfully, but these errors were encountered:
functionTestCmp({ domLayout }){return(<AgGridReact// other props heredomLayout={domLayout}/>);}
setDomLayout doesn't works either
functionTestCmp({ domLayout }){const[gridApi,setGridApi]=useState<GridApi>();constonGridReady=useCallback(params=>{setGridApi(params.api);},[]);useEffect(()=>{if(gridApi){gridApi.setDomLayout(domLayout);}},[domLayout,gridApi]);return(<AgGridReact// other propsdomLayout={domLayout}/>);}
But setDomLayout does work if you always set the layout to normal or don't pass it at all.
functionTestCmp({ domLayout }){const[gridApi,setGridApi]=useState<GridApi>();constonGridReady=useCallback(params=>{setGridApi(params.api);},[]);useEffect(()=>{if(gridApi){gridApi.setDomLayout(domLayout);}},[domLayout,gridApi]);return(<AgGridReact// other propsdomLayout='normal'/>);}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When changing the domLayout either via the prop or the api method setDomLayout, the divs enclosing the data do not update dynamically when the change is made, only when the grid is first rendered on the page.
The text was updated successfully, but these errors were encountered: