【发布时间】:2015-06-02 14:00:20
【问题描述】:
我的项目中有一个 Kendo 窗口,并在其中填充了一些字段。尽管标题按我的意愿行事,但滚动条溢出到页脚。我希望窗口内容是可滚动的,除了下图所示的页眉和页脚(页脚可见为粘性)。我该怎么做?
查看:
@(Html.Kendo().Window()
.Name("winCreate")
.Title("New")
.Visible(false)
.Draggable(true)
.Content("Loading...")
.LoadContentFrom("Create", "Issue")
.Modal(true)
.Actions(actions => actions
.Close()
)
)
@using (Html.BeginForm("Create", "Issue", FormMethod.Post}))
{
@Html.AntiForgeryToken()
<div class="container">
@Html.LabelFor(m => m.ProjectID)
@Html.TextBoxFor(m => m.ProjectID, new { maxlength = 75, @class = "k-textbox" })
<br />
... //The other staff here
<div class="modal-footer">
@(Html.Kendo().Button()
.Name("btnCancel")
.HtmlAttributes(new { type = "button", @class = "k-button" })
.Content("Cancel")
.Events(ev => ev.Click("closeWindow"))
)
@(Html.Kendo().Button()
.Name("btnSubmit")
.HtmlAttributes(new { type = "submit", @class = "k-primary k-button" })
.Content("Save")
)
</div>
</div>
}
【问题讨论】:
标签: css asp.net-mvc html kendo-ui kendo-asp.net-mvc