This is a migrated thread and some comments may be shown as answers.

[Solved] @html.Editorfor with telerik mvc controls = bugs

0 Answers 86 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ronald
Top achievements
Rank 1
ronald asked on 10 Apr 2012, 06:43 AM

having the following logic in my mvc view:

@using (Html.BeginForm())
{
    //@Html.EditorForModel()
    for (int index = 0; index < Model.Count; index++)
    {
        @Html.EditorFor(m => m[index], "_EditModel")
    } 
    <input type="submit" value="Save" />
}

In the _EditModel.cshtml i have the normal @html.TextboxFor control and telerik controls such as comboboxfor.

For all the telerik control, it does preserve the value back to the controller for normal html controls ( @html.TextboxFor) while clicking on the Save button But not for the telerik controls.  All value that was rendered using telerik control are not being passed back to controller. any ideas?

Tags
ComboBox
Asked by
ronald
Top achievements
Rank 1
Share this question
or