I have a situation where we have a dataform with various tabs in it. Some have multitudes of data fields, and some have radgrids. So that the user is always able to view the entirety of the form regardless of the width/height of the contents relative to their screensize, the entire form content sits inside a scrollviewer.
However, this is giving us undesirable behaviour regarding the radgrid. When not in a scrollviewer the grid will size itself to the available height/width (it is height that I'm interested in here), and show its own internal scrollbar if there is insufficient height to display the available rows of data.
Within the scrollviewer it sizes itself to the available height, but if the available height is insufficient, it sizes to the number of rows of data and lets the outer scrollviewer display its own scrollbars.
I've verified in a test project that the dataform and tab control aren't getting in the way, and it works this way with just a grid inside a standard scrollviewer, and a radgrid within that.
In our case we really want the scrollviewer only to come into effect when the fixed elements on the page force the content to be bigger than the size of the scrollviewer viewport. We'd like the radgrid to continue to behave as before and use its own internal scrollbar. It clearly knows the actual amount of available height, as it sizes to the full height of the page until you resize the browser such that it is smaller than that required to display the rows of data in the grid.
Without resorting to event handlers on Grid sizechanged etc.. and setting the actual radgrid height accordingly, which we're doing currently and isn't ideal as it means requiring to make exact allowances for margins/paddings etc.. and risks the dreaded "Layout Cycle Detected" error, is there any way to get the radgrid to size as before, even though it's inside a scrollviewer?
Thanks,
Colin.
However, this is giving us undesirable behaviour regarding the radgrid. When not in a scrollviewer the grid will size itself to the available height/width (it is height that I'm interested in here), and show its own internal scrollbar if there is insufficient height to display the available rows of data.
Within the scrollviewer it sizes itself to the available height, but if the available height is insufficient, it sizes to the number of rows of data and lets the outer scrollviewer display its own scrollbars.
I've verified in a test project that the dataform and tab control aren't getting in the way, and it works this way with just a grid inside a standard scrollviewer, and a radgrid within that.
In our case we really want the scrollviewer only to come into effect when the fixed elements on the page force the content to be bigger than the size of the scrollviewer viewport. We'd like the radgrid to continue to behave as before and use its own internal scrollbar. It clearly knows the actual amount of available height, as it sizes to the full height of the page until you resize the browser such that it is smaller than that required to display the rows of data in the grid.
Without resorting to event handlers on Grid sizechanged etc.. and setting the actual radgrid height accordingly, which we're doing currently and isn't ideal as it means requiring to make exact allowances for margins/paddings etc.. and risks the dreaded "Layout Cycle Detected" error, is there any way to get the radgrid to size as before, even though it's inside a scrollviewer?
Thanks,
Colin.