I have 2 cell renderers in 2 coulmns of my ag grid. 1st column is action column. 2nd column is a dropdown containing data options.
Dynamically, based on the selection of data from dropdown in 2nd column, i want to change / toggle the action icons in the 1st column. Is this possible?
I have used cellrendererframework for both cell renderers.
Yes, it is possible!
First of all, you should add
refresh()method to youcell-dropdown.componentIt will look like:
After new selection have been selected it calls the method
refresh()and the first column will redrawI have created exapmle with your case:
We have dropdown of gender and based on changed selection - name of the first column will change
For gender column is used
cellRenderFrameWorkfor the first column (name) is used simple inline
cellRenderand looks likeworking example: https://plnkr.co/edit/HT5fgs0VV5PqErWH