Hello. To whom it may concern!
We using this extension, LabelFor, in such way (here You are MVC Razor view part)
@for (int i = 0; i < Model.Roles.Count; i++)
{
@Html.HiddenFor(m => m.Roles[i].Item.RoleId)
@Html.EditorFor(m => m.Roles[i].Exists)
@Html.DevExpress().LabelFor(m => m.Roles[i].Exists, settings => { settings.Text = Model.Roles[i].Item.RoleName; }).GetHtml()<br />
}
In such way LabelFor extension generates label tag without "for" attribute. And focus do not work properly. If LabelFor is placed outside the loop, everything is Ok. What we do wrong?
Hello Alexander,
Would you please describe the issue you encountered in greater detail? Some screenshots with actual and expected results, and sample project would be helpful.
I have created a sample project based on your description and labels are rendered correctly (see the attached video).
here you are working example, LabelFor extensions, that are in loop renders without "for" attribute, so focusing do not works.
Alexander,
Thank you for the provided sample. We need more time to investigate this issue.
Hello Alexander,
I see the problem and have passed it to our R&D team to research the issue in greater detail.
Please bear with us. We'll update this thread as soon as we have a precise answer.