limitations of using @Html.EditorForModel
<p>I am working on an asp.net mvc-5 web application. I have the following model class :-</p>

<pre><code>public class Details4
    {
        [HiddenInput(DisplayValue=false)]
        public string RESOURCENAME { set; get; }
        [Display (Name="Account Name")]
        [Required]
        public string ACCOUNTNAME { set; get; }
        [Display(Name = "Resource type")]
        [Required]
        public string RESOURCETYPE { set; get; }
        [DataType(DataType.Password)]
        [Required]
        public string PASSWORD { set; get; }
        [Display(Name = "Description")]
        [DataType(DataType.MultilineText)]
        public string Description { set; get; }
        [Display(Name= "URL")]
        [Url]
        public string RESOURCEURL { set; get; }
        [Display(Name="Owner Name")]
        [Required]
        public string OWNERNAME { set; get; }
        [Display(Name = "Resource Group Nam")]
        public string RESOURCEGROUPNAME { set; get; }
        [JsonProperty("Domain")]
        public string DomainName { set; get; }
        [JsonProperty("DNSNAME")]
        public string DNSNAME { set; get; }
         [Display(Name = "Department")]
        public string DEPARTMENT { set; get; }
         [Display(Name = "Location")]
        public string LOCATION { set; get; }
        public List&lt;RESOURCECUSTOMFIELD&gt; RESOURCECUSTOMFIELD { set; get; }
    }

 public class RESOURCECUSTOMFIELD
    {
        public string CUSTOMLABEL { set; get; }
        public string CUSTOMVALUE { set; get; }
    }
</code></pre>

<p>now i usually use <code>@Html.EditorFor()</code> &amp; <code>LabelFor()</code> at the field level. but for this model i wanted to start using <code>@Html.EditorForModel</code> as i will have less markup on the view:-</p>

<pre><code>@Html.EditorForModel()
</code></pre>

<p>now the result of this was not 100% what i was expecting:- </p>

<p><a href="https://i.stack.imgur.com/lU46o.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lU46o.png" alt="enter image description here"></a></p>

<p>so can any one advice how i can overcome these limitations:-</p>

<ol>
<li><p>Is there a way to have the ResourceType field as a drodownlist ? . now if i am rendering separate fields i can use <code>@Html.DropDownlistFor</code> .. but not sure how i can handle this when using <code>@Html.EditorForModel</code> ?</p></li>
<li><p>is there a way to modify the generated layout ?,, now usual all over my application i have the following layout for the label --> text box:-</p>

<pre><code>&lt;div&gt;
    &lt;span class="f"&gt;@Html.DisplayNameFor(model =&gt; model.Resource.RESOURCENAME)&lt;/span&gt; 
   @Html.EditorFor(model =&gt; model.Resource.RESOURCENAME) 
    @Html.ValidationMessageFor(model =&gt; model.Resource.RESOURCENAME)                                              
&lt;/div&gt;
</code></pre></li>
</ol>

<p>where i have the label &amp; text at the same line, and i wrap the label with a class=f which will show the label in bold font. so can i modify the generated output from the <code>EditorForModel</code> to have the label and the text box at the same line, instead of being on 2 separate lines?</p>

<ol start="3">
<li>will i be able to force the EditorForModel to render the <code>RESOURCECUSTOMFIELD</code> list columns ?</li>
</ol>