3

有人知道改变 MVC Grid 的 Telerik Extensions 高度的方法吗?除了使用手动覆盖样式

div#MyGrid .t-grid-content {
    height: 100px !important;
}

我想在网格本身上控制它,而不是在样式表上。Telerik 示例和文档对此只字未提,似乎不受支持

有没有人遇到过(并解决过)同样的问题?

4

1 回答 1

6

您可以使用 Scrollable 方法控制网格的高度。

使用表示像素的 int32:

.Scrollable(scrolling => scrolling.Height(500))

使用字符串:

.Scrolling(scrolling => scrolling.Height("20em"))
于 2012-06-21T16:12:08.977 回答