繁体   English   中英

我如何使此网格可滚动?

[英]How i can make this grid be scrollable?

private Core.Controls.Model.Grid CreateOfferGrid()
    {
        Core.Controls.Model.Grid offerGrid = new PopupGrid("ProjectOfferCalculationForm");

        offerGrid.ItemsSource = "ProjectRealization";
        offerGrid.ItemType = "IAngeboten";
        offerGrid.BindTo = "ProjectRealization";
        offerGrid.AllowAdd = true;
        offerGrid.Group = "PR_ANG_OFFER";
        offerGrid.AllowDelete = true;
        offerGrid.AllowEdit = true;
        offerGrid.IsInline = false;
        offerGrid.Advanced = true;
        offerGrid.KendoPopUp = true;

        offerGrid.Columns.Add(new GridColumnDefinition("Id", "Id", ColumnType.Text, false));
        offerGrid.Columns.Add(new GridColumnDefinition("Number", ProjectsModuleDefinition.ProvideOffersNumberColumnName(),    ColumnType.Text, true) { Width = "20" });

        return offerGrid;
    }

如您在pictrue中看到的,没有滚动。 我不知道如何使此滚动可见。

您可以使用以下设置启用滚动条:

PageSize = 50;
VerticalScrollBarMode = ScrollBarMode.Visible;
VerticalScrollableHeight = 300;

顺便说一下 ,这是在这里找到的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM