On my webpage, I have a layout that includes between 1 and 6 dynamically generated iframes with RadGrids arranged in two columns. I have successfully aligned the Document Number column in all of them, but when one grid has more data than can fit on the page, causing a scrollbar to appear, it throws off the alignment of the columns.
The issue arises when the scrollbar shifts all the columns slightly to the left in that particular grid, making them out of sync with the rest. I came up with a solution by adding an extra small column that I can display dynamically to adjust the position of the other grid's columns, but I need a way to detect if a scrollbar is being shown or not.
I came across an old post from Telerik which suggests comparing scroll height to overflow height to check for scrollbar presence. However, my attempts at using the provided JavaScript code showed that it was outdated and referenced GridDataDiv which no longer exists.
Is there a new or updated method to determine if a scrollbar is visible? Alternatively, is there a better approach to keeping my document number columns aligned consistently regardless of scrollbar presence?