PDA

View Full Version : No Horizontal Scroll bar in GridPanel



fangmdu
Jul 05, 2012, 5:36 PM
I don't know why there is no scroll bar in the gridpanel. I already set the autoscroll = true.


<ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout" AutoScroll="true">
<Items>
<ext:TabPanel
ID="TabPanel1"
runat="server"
ActiveTabIndex="0"
Width="600"
AutoHeight="true"
Region="Center">
<Items>
<ext:Panel ID="Panel_RunTests"
runat="server"
Title="Run Test"
Frame="true"
AutoHeight="true"
AutoScroll="true"
>
<Items>
<ext:GridPanel
ID="GridPanel_Tests"
runat="server"
Title="Tests to Run"
AutoHeight = "true"
AutoScroll="true"
Width="1200"
Collapsed="false"
Collapsible="true">
<Store>
<ext:Store ID="Store_TestsRun" runat="server">
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="Run_Number" />
<ext:RecordField Name="Client"/>
<ext:RecordField Name="SDE_Platform" />
<ext:RecordField Name="SDE_Instance" />
<ext:RecordField Name="SDE_Database"/>
<ext:RecordField Name="SDE_Version" />
<ext:RecordField Name="SDE_Keyword"/>
<ext:RecordField Name="SDE_User"/>
<ext:RecordField Name="SDE_Password"/>
<ext:RecordField Name="SDE_TestRun"/>
<ext:RecordField Name="SDE_User2"/>
<ext:RecordField Name="SDE_Password2"/>
<ext:RecordField Name="SDE_User3"/>
<ext:RecordField Name="SDE_Password3"/>
<ext:RecordField Name="SDE_OSPlatform"/>
<ext:RecordField Name="SDE_DBMS"/>
<ext:RecordField Name="SDE_Release"/>
<ext:RecordField Name="Email"/>
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:Column DataIndex="Run_Number" Header="ID" />
<ext:Column DataIndex="Client" Header="Client" >
</ext:Column>
<ext:Column DataIndex="SDE_Platform" Header="SDE Platform" >
</ext:Column>
<ext:Column DataIndex="SDE_Instance" Header="Instance" />
<ext:Column DataIndex="SDE_Database" Header="Database" />
<ext:Column DataIndex="SDE_Version" Header="Version" />
<ext:Column DataIndex="SDE_Keyword" Header="Keyword" />
<ext:Column DataIndex="SDE_User" Header="User" />
<ext:Column DataIndex="SDE_Password" Header="Password" />
<ext:Column DataIndex="SDE_TestRun" Header="Test" />
<ext:Column DataIndex="SDE_User2" Header="User2" />
<ext:Column DataIndex="SDE_Password2" Header="Password2" />
<ext:Column DataIndex="SDE_User3" Header="User3" />
<ext:Column DataIndex="SDE_Password3" Header="Password3" />
<ext:Column DataIndex="SDE_OSPlatform" Header="OS Platform" />
<ext:Column DataIndex="SDE_DBMS" Header="DBMS" />
<ext:Column DataIndex="SDE_Release" Header="SDE Release" />
<ext:Column DataIndex="Email" Header="Email" />
</Columns>
</ColumnModel>
</ext:GridPanel>
</Items>
</ext:Panel>
</Items>
</ext:TabPanel>
</Items>
</ext:Viewport>

4445


Thanks very much for your help!

Daniil
Jul 05, 2012, 10:48 PM
Hi,

At the first glance the scrollbar should appear in your sample.

Please provide a full sample with some dummy data to allow us to just copy, paste and run the sample.

fangmdu
Jul 05, 2012, 10:53 PM
Hi Daniil,

Thanks for your reply.

I just solved the problem. No autoheight for scroll bar would work.




Hi,

At the first glance the scrollbar should appear in your sample.

Please provide a full sample with some dummy data to allow us to just copy, paste and run the sample.