【问题标题】:ExtJs Grid acting very strangeExtJs Grid 表现得很奇怪
【发布时间】:2010-10-26 21:06:00
【问题描述】:

所以我有两张正在发生的怪事的照片

如上图所示,右侧的滚动条被屏幕截断了一点点,即使向右滚动,滚动条也没有回来,它仍然被切断。

这是另一种情况:

在这里,您可以看到当我在此网格中向下滚动时,滚动条有点适合网格的底部,甚至不会一直向下滚动。您需要手动单击网格并点击向下箭头才能继续向下移动。

是什么导致了这两个奇怪的问题?

编辑:

这里是生成网格的代码(通过VB控件创建的Ext):

Dim VehicleOptionsGrid As New Akcelerant.Framework.WebControls.Grids.Grid
    With VehicleOptionsGrid
        .ID = "VehicleOptionsGrid"
        .Title = "Vehicle Options"
        .Toolbar.UseDefaultButtons = False        
        .Mode = Grids.Grid.GridMode.Control        
        .Panel.Border = False
        .Panel.Style = "border-width:1px;margin-bottom:5px"
        .Ref = "../../../../../VehicleOptionsGrid"
        .Editable = True
        With .Columns.Add("IsSelected", "Selection", Akcelerant.Framework.WebControls.Grids.Grid.ColumnDataType.Boolean)
            .Renderer = "renderVehicleCheckbox"
        End With
        .Columns.Add("CollateralId", "").Hidden = True
        .Columns.Add("OptionId", "OptionId").Hidden =True         
        .Columns.Add("OptionName", "Name").Width = 200
        .GridHeight = 400
        .DataBind()

        ViewResponse.AddScript(.ToString(False))
        ViewResponse.AddScript("VehicleOptionsGrid.grid.addListener('cellclick', changeOptionStatus);")
    End With

这里是我们将网格添加到页面的地方:

With .AddPanel
                            With .AddPanel
                                .Title = ""
                                .Html = "Standard Options are preselected. Please select additional options as needed."
                                .Style = "padding-bottom:5px"
                            End With
                            .Ref = "../../../../VehicleOptionsPanel"
                            .Title = "Vehicle Options"
                            .Frame = True
                            .Style = "padding-bottom:5px"
                            .Layout = Pages.Panel.LayoutType.Column
                            .Height = 400
                            .Collapsed = True
                            .AddExtObject("VehicleOptionsGrid.grid")
                        End With

【问题讨论】:

  • 请发布您的网格配置。似乎网格大小高于容纳网格的实际组件(可能是可折叠面板)。
  • 添加了显示网格创建和添加位置的代码...
  • 你是对的,这是网格高度...作为答案发布,我会给你打勾;)谢谢!

标签: asp.net extjs grid


【解决方案1】:

网格大小似乎比容纳网格的实际组件(可折叠面板)要大。

【讨论】:

    猜你喜欢
    • 2013-02-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-12
    • 2012-11-11
    • 1970-01-01
    • 2023-03-22
    • 2020-05-03
    相关资源
    最近更新 更多