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
After explicitly turning 'enableFiltering' on and not seeing any result in my grid, I began stepping through the code to see what was occurring.
Turns out (may be related to the time it takes to fetch my data for binding to gridOptions.data? I am also manually building out the column definitions) that the header heights were always calculated without the additional height to compensate for the filter.
Grid.prototype.refreshCanvas=function(buildStyles){if(containerHeadersToRecalc.length>0){// Putting in a timeout as it's not calculating after the grid element is rendered and filled out$timeout(function(){
........});}};
This timeout was the culprit. By supplying a delay of 200ms, everything renders as expected. Is this a code smell of something I am doing that is not best practice? Or is there a way to correct this? I haven't analyzed this functionality yet, but am just looking for some high level explanation.