这是我创建网格的代码:
@{
if (Model.GenericEntityList.Count > 0)
{
@(Html.Kendo().Grid(Model.GenericEntityList).Name(screenNames.ToString()).Columns(
columns =>
{
columns.Bound(a => a.ID).Title("<input id='checkAll' type='checkbox' />").ClientTemplate("<input type='checkbox' id=#=genericCheckbox(ID,ViewFlag)#").Width(7);
columns.Bound(a => a.Name).Title(screen.ToString() + " Name").Width(93);
}
).Selectable().Scrollable().DataSource(
datasource =>
datasource.Ajax().Read(read => read.Action("CompSetHide", "Compset"))
).Events(a => a.Change("rowclick")
)
.HtmlAttributes(new {style = "height: 185px;"})
)
}
}
如何禁用和启用自动出现在剑道网格内的垂直滚动条?
您可以使用类似的方法来显示垂直滚动条:
$("#grid .k-grid-content").css({
"overflow-y": "scroll"
});
这是为了隐藏它:
$("#grid .k-grid-content").css({
"overflow-y": "hidden"
});
where grid
是网格元素的 id。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)