This question is locked. New answers and comments are not allowed.
Hi,
I'm using data annotations to display a form in the grid.
How can I set different styles to text boxes?
I want to set different widths for different text boxes.
Now when the form is generated all text boxes has the same css classes.
Is there a way to set it directly on the model class like the other attributes?
I'm using data annotations to display a form in the grid.
How can I set different styles to text boxes?
I want to set different widths for different text boxes.
Now when the form is generated all text boxes has the same css classes.
<div class="editor-label"><label for="FirstName">Förnamn</label></div><div class="editor-field"><input class="text-box single-line" id="FirstName" name="FirstName" type="text" /> <span class="field-validation-valid" id="FirstName_validationMessage"></span></div><div class="editor-label"><label for="LastName">Efternamn</label></div><div class="editor-field"><input class="text-box single-line" id="LastName" name="LastName" type="text" /> <span class="field-validation-valid" id="LastName_validationMessage"></span></div>Is there a way to set it directly on the model class like the other attributes?