ext.net gridview水平滚动条不可见

时间:2014-03-07 13:07:09

标签: c# asp.net-mvc-4 ext.net

我正在动态生成EXT.NET gridview,如下所示

public GridPanel GetGridView()
    {
        return new GridPanel
        {
            Border = false,
            ID = "grd",
            Cls = "x-grid-custom",
            StyleSpec = "margin-top:7px; margin-left:-2px",
            Scroll = ScrollMode.Both,
            OverflowX = Overflow.Auto,
            EnableColumnHide = false,
            ColumnLines = true,
            ForceFit = false,
          //Width = 1100,
            EmptyText = "No rows to display",
            Store = { this.CreateTabularStore() },
            ColumnModel =
            {
                Columns = {
                             // columns list 
                    }
            },
            Features = {
                           new Grouping(){HideGroupedHeader=false }
                           },
            View = { new Ext.Net.GridView() { LoadMask = true, LoadingText = "Loading..." } }
        };
    }

我在我的操作方法中添加了这个网格,并将其添加到Container()

但渲染的网格没有显示滚动条,尤其是水平滚动条

我尝试为每列添加固定宽度以及网格。

0 个答案:

没有答案