I want to use a (bootstrap) modal to show a translationdialog but it's giving a wrong name. In the browser sourcecode it shows NameTranslations.[0].Translation while it have to be NameTranslations[0].Translation (without the dot between NameTranslation and the [i]).
Some code :
Views/Shared/EditorTemplate/Translation.cshtml
@model List<Data.ViewModels.Shared.TranslationViewModel>
@for (var i = 0; i < Model.Count; i++)
{
@Html.TextBoxFor(m => Model[i].Translation)
}
Create.cshtml
@Html.EditorFor(model => Model.NameTranslations,"Translation")
BrowserResult
<input id="NameTranslations__0__Translation" name="NameTranslations.[0].Translation" type="text" value="">
Everything work greats except the name convention is wrong. If I delete the dot in the browsercode, it is well posted in the controller.