1

How do I validate using Kendo,

I added a normal textbox

@Html.Kendo().HtmlHelper.TextBoxFor(model => model.Name)
@Html.Kendo().HtmlHelper.ValidationMessageFor(model => model.Name)

and I added the following to the model

[Required(ErrorMessage = "Please enter a name.")]

The validation is not shown on form submission, any idea on how to get the message to show?

4

1 に答える 1