Mise à jour de Kendo de la grille avec l'éditeur dropdownlist valeur

J'ai un Kendo de la grille de jeu:

@(Html.Kendo().Grid<ParticipatingDentalEE>()
.Name("DentalEE")
.Columns(columns =>
{
    columns.Bound(p => p.State).Title("State").Width(150).EditorTemplateName("State");
    columns.Bound(p => p.Count).Title("Count").Width(150);
    columns.Command(c => { c.Edit(); c.Destroy(); });
})
.DataSource(dataSource => dataSource
    .Ajax()           
    .Model(m => {
        m.Id(p => p.State);
        m.Field(p => p.State).Editable(true);
        m.Field(p => p.Count).Editable(true).DefaultValue("");
    })
    .Create(update => update.Action("EditingInline_Create", "Dental"))
    .Read(read => read.Action("EditingInline_Read", "Dental"))
    .Update(update => update.Action("EditingInline_Update", "Dental"))
    .Destroy(update => update.Action("EditingInline_Destroy", "Dental"))
)
//.Scrollable()
//.Sortable()
.Editable(e => e.Mode(GridEditMode.InLine))

)

La colonne "Etat" se compose d'une liste déroulante modèle qui ressemble à ceci:

@(Html.Kendo().DropDownList()
    .Name("States") //Name of the widget should be the same as the name of the property
    .DataValueField("CODE") //The value of the dropdown is taken from the EmployeeID property
    .DataTextField("NAME") //The text of the items is taken from the EmployeeName property
    .BindTo((System.Collections.IEnumerable)ViewData["States"]) //A list of all employees which is populated in the controller
)

Ma liste déroulante s'affiche correctement lorsque j'modifier ou créer un article, mais quand j'ai enregistrer l'élément de la liste déroulante la valeur n'est pas rester dans la grille. Est-il autre chose que je dois mettre en place pour ce faire?

OriginalL'auteur Goose | 2013-08-15