I have the WebDataGrid placed in the top half of a splitter control. Virtual scrolling is not enabled.
I would like to be able to set the grid height to 100% so that it will resize with the splitter. However, when I do this, all of the smart scrolling features stop working (fixed header/footer, maintaining scroll position on row select, etc).
In fact, if you do this, the grid doesn't scroll at all... the only scrollbar visible is that of the splitter pane, which shouldn't be visible. You have to use the splitter pane scrollbar to navigate the grid, which creates all kinds of issues.
If I set the grid height to a fixed height in pixels (ie: 400px), the problem sort of goes away... as long as the splitter pane isn't resized to less than that value. If that happens, you end up with two scrollbars. If I'm forced to define a specific height in pixels, I might as well not use a splitter at all.
Is there a way to set the grid height to 100% and have data scrolling still work correctly?
In case anybody else encounters this, the following resolves the issue:
I suggest that IG fix the issue so that 100% height won't break grid data scrolling, because 100% is the intuitive setting to use if you want the grid to fill the pane. But, at least there's a work-around.
Hello Rob,
Please feel free to ask if you need more assistance regarding this.
Thank you very much, your answer makes perfect sense.
I still think this isn't very intuitive, but it does make sense once you see how the pieces fit together.
Hi Tsvetelina,
I have a webdatagrid inside a iframe -
<iframe id="bottom" runat="server" height="100%" width="100%" src="report.aspx" frameborder="0" scrolling="auto" />
Report.aspx has webdatagrid, Grid's markup is -
<ig:WebDataGrid ItemCssClass="grid" AltItemCssClass="gridAltItem" HeaderCaptionCssClass="gridHeader" EnableAjaxViewState="False" EnableAjax="False" ID="grdReport" runat="server" AutoGenerateColumns="False" Height="100%" Width="100%">
Both horizontal & vertical scrollbar for grid appears but when I scroll down the headers doesn't appear to be fixed & goes away with the scroll. Any suggestion what might be going wrong?