PDA

View Full Version : [CLOSED] [RAZOR] Vertical scrollbars not appearing



gets_gui
Jul 31, 2012, 11:03 AM
Hi

I've loaded my gridpanel with data (more than is visible on screen). But the vertical scrollbar is not appearinfg once the data is loaded and the first screen of data displayed. I've set the gridpanel for AutoHeight and AutoDoLayout.

Below is a sample of the layout I'm using


Html.X().TabPanel()
.ID("TabPanel")
.Title("TabPanel")
.Add(Html.X().Panel()
.ID("panelTop")
.Title("panelTop")
.Split(true)
.Layout(Ext.Net.LayoutType.Accordion)
.Add(Html.X().Panel()
.ID("panel1")
.Title("panel1")
.Add(Html.X().GridPanel()
.ID("gridPanel")
.AutoHeight(true)
.AutoDoLayout(true)
.ColumnModel(columns =>
{
columns.Add(Html.X().Column()
.Text("Col1")
.DataIndex("_Col1")
);
columns.Add(Html.X().Column()
.Text("Col2")
.DataIndex("_Col2")
);
})
.Store(store => store.Add(Html.X().Store()
.ID("store")
.Buffered(false)
.AutoLoad(false)
...
)
))
))
)
)

Daniil
Jul 31, 2012, 2:11 PM
Hi,

Well, this

AutoHeight="true"
and vertical scrolling contradict each other.

To get vertical scrolling for the GridPanel the combined rows height should exceed the GridPanel height.

Please try to set up

.Layout("fit")
for the panel1 and remove

.AutoHeight(true)
of the GridPanel.

Does the scrolling appear now?

gets_gui
Aug 02, 2012, 11:36 AM
thanks Daniil, that worked. Please close.