Comment activer ASP.Net MVC client de validation de Kendo UI DropDownList et ComboBox?

Lorsque j'utilise le Kendo UI ComboBox et de contrôles DropDownList dans mon MVC, Razor points de vue, la validation côté client ne se déclenche pas. Voici un exemple:

@using Kendo.Mvc.UI
@model KendoDropDownTest.Models.TestModel

@{
    ViewBag.Title = "Kendo Drop Down and Combo Box Test";
}

<h2>Kendo Drop Down and Combo Box Test</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary()

        <div>
            @Html.LabelFor(x => x.DropDownValue)
            @(Html.DropDownListFor(x => x.DropDownValue, Model.Options, "-- Select an Option --"))
            @Html.ValidationMessageFor(x => x.DropDownValue)
        </div>

    <fieldset>
        <legend>Kendo</legend>
        <div>
            @Html.LabelFor(x => x.KendoComboValue)
            @(Html.Kendo().ComboBoxFor(x => x.KendoComboValue)
                  .BindTo(Model.Options.Select(x => x.Text)))
            @Html.ValidationMessageFor(x => x.KendoComboValue)
        </div>

        <div>
            @Html.LabelFor(x => x.KendoDropDownValue)
            @(Html.Kendo().DropDownListFor(x => x.KendoDropDownValue)
                .OptionLabel("-- Select an Option --")
                .BindTo(Model.Options))
            @Html.ValidationMessageFor(x => x.KendoDropDownValue)
        </div>
    </fieldset>

    <input type="submit" value="Submit" />
}

Et le modèle correspondant:

public class TestModel
{
    [Required]
    public string DropDownValue { get; set; }
    [Required]
    public string KendoComboValue { get; set; }
    [Required]
    public string KendoDropDownValue { get; set; } 

    public SelectListItem[] Options = new[]
    {
        new SelectListItem
        {
            Text = "Option 1",
            Value = "1"
        }, 
        new SelectListItem
        {
            Text = "Option 2",
            Value = "2"
        }, 
        new SelectListItem
        {
            Text = "Option 3",
            Value = "3"
        }, 
    };
}

La non-Kendo UI déroulant de manière appropriée montre l'erreur de validation lorsque le formulaire est envoyé, mais le Kendo contrôles ne sont pas. S'il vous plaît laissez-moi savoir si il existe un moyen pour permettre la validation côté client pour ces contrôles sans fil manuellement.

Un exemple complet de la solution est attaché à la suite de Kendo post sur le forum:
http://www.kendoui.com/forums/mvc/dropdownlist/mvc-client-validation-not-working.aspx

OriginalL'auteur Jason Smale | 2012-09-06