Jan 22, 2014, 7:53 AM
Vertical scroll bar of gridpanel can not be shown automatically.
Hi,
The following is my code.
By the way, I tested several times. If I set the the gridpanel's height, the vertical scroll bar will appear automatically. But I don't know the actual value of height. If anyone has other solutions, please help me. This issue is due to the upgrade from 1.x to 2.4.
The following is my code.
<ext:Viewport ID="Viewport1" runat="server" Layout="ColumnLayout">
<Items>
<ext:GridPanel ID="gp1" runat="server" ColumnWidth="0.4" AutoScroll="true">
......
</ext:GridPanel>
<ext:GridPanel ID="gp2" runat="server" ColumnWidth="0.6" AutoScroll="true">
......
</ext:GridPanel>
</Items>
</ext:ViewPort>
If the number of records more than the page size of the GridPanel, no vertical scroll bar is shown. In order to show the vertical scroll bar, I try to put the gridpanel into a panel. Here is my code.<ext:Viewport ID="Viewport1" runat="server" Layout="ColumnLayout">
<Items>
<ext:Panel ID="pnl1" runat="server" ColumnWidth="0.4" Layout="FitLayout" AutoScroll="true">
<Items>
<ext:GridPanel ID="gp1" runat="server" ColumnWidth="0.4" AutoScroll="true">
......
</ext:GridPanel>
</Items>
</ext:Panel>
<ext:Panel ID="pnl2" runat="server" ColumnWidth="0.6" Layout="FitLayout" AutoScroll="true">
<Items>
<ext:GridPanel ID="gp2" runat="server" ColumnWidth="0.6" AutoScroll="true">
......
</ext:GridPanel>
</Items>
</ext:Panel>
</Items>
</ext:ViewPort>
The vertical scroll bar is also not shown. Who can tell me the reason, what should I do? Thanks a lot.By the way, I tested several times. If I set the the gridpanel's height, the vertical scroll bar will appear automatically. But I don't know the actual value of height. If anyone has other solutions, please help me. This issue is due to the upgrade from 1.x to 2.4.
Last edited by Santon_Lee; Jan 22, 2014 at 9:17 AM.