[CLOSED] [RAZOR] Vertical scrollbars not appearing

  1. #1

    [CLOSED] [RAZOR] Vertical scrollbars not appearing

    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)
                           ... 
                           )
                        ))
                        ))
                    )
                )
    Last edited by Daniil; Aug 02, 2012 at 11:42 AM. Reason: [CLOSED]
  2. #2
    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?
  3. #3
    thanks Daniil, that worked. Please close.

Similar Threads

  1. [CLOSED] [Razor] Setup Auto load panel in razor
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2012, 10:54 AM
  2. [CLOSED] Horizontal Scrollbars Not Appearing for Panel Contents
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 29, 2012, 8:15 PM
  3. [CLOSED] Vertical Button With Text, Or Vertical Tabs
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 21, 2011, 9:43 PM
  4. Replies: 4
    Last Post: Dec 30, 2009, 1:31 AM
  5. [CLOSED] GridPanel vertical scrollbars
    By state in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 14, 2009, 7:07 PM

Tags for this Thread

Posting Permissions