更新时间:2022-04-01 23:56:53
最后我解决了问题,如 BoltClock 的答案.
Finally I solved the problem as indicated on BoltClock's answer.
<span class="k-editor-val-message">
@Html.LabelFor(m => m.Description, new { maxlength = 1000, @class = "editor-label" })
@(Html.Kendo().EditorFor(m => m.Description)
.Name("Description")
.HtmlAttributes(new { @class = "editor-field", style = "width:660px; height:140px;",
required = "required", data_required_msg="Required field" })
)
@Html.ValidationMessage("Description")
</span>
<style>
.k-editor-val-message > .k-invalid-msg {
// proper position
}
</style>