Let's say I have an AG Grid with basic, common columns, column definitions, and a basic grid display. But I want to add a button to my page that allows me to swap between the basic, common grid view to something like a card view.
I have this working, but the problem is that the getRowStyle call isn't properly updating - it runs on load, but doesn't run on swap, or at least doesn't appear to (regular grid displays fine, swapping back to card view removes 10px gap). I'm not sure if I need to add an additional listener, maybe, or defer my return for x milliseconds, or what.
This is in pure vanilla AG-Grid - not React or Angular (we're actually using Sencha, but that's a different can of worms altogether).
Any suggestions?
getRowStylecalled). Check it by yourselfgetRowStyle: function(params) { console.log('rowstyle');return adjustRowStyle(params); },- un.spike