I have a grid that is showing fields and one of them is a Name field that can be long. When adding and editing a record, I want the Name field to be a textbox that is 2 rows high.
I created a EditorTemplate that looks as follows:
I created a EditorTemplate that looks as follows:
@(Html.TextArea("Name", new{style="width:200px;height:30px;",row="2",cols="30"})
I placed this at the top of the Name field in the ViewModel:
[UIHint("SponsorNameMultilineText")]
I am now seeing a text box but it has too many lines in it - I want it to be shorter. How do I do that?