title: MVC Disabled SelectListItem property not working
body: <p>Building the SelectList</p>
  
  <pre><code>   public SelectList DummyList()
      {
          List&lt;SelectListItem&gt; list = new List&lt;SelectListItem&gt;();
          list.Add(new SelectListItem { Value = "0", Text = "---Select--", Disabled = false });
          list.Add(new SelectListItem { Value = "Uno", Text = "Uno", Disabled = false });
          list.Add(new SelectListItem { Value = "Dos", Text = "Dos", Disabled = true});
          list.Add(new SelectListItem { Value = "Tres", Text = "Tres", Disabled = false });
          list.Add(new SelectListItem { Value = "Cuatro", Text = "Cuatro", Disabled = false });
  
          return new  SelectList(list, "Value", "Text", "---Select--");
  
      }
  </code></pre>
  
  <p><br/>
  <br/>
  Binding the Select List to the model</p>
  
  <pre><code>model.ProductsModel.Model = new DummyDropDown().DummyList();
  </code></pre>
  
  <p><br/>
  <br/>
  Displaying the view</p>
  
  <pre><code>@Html.DropDownListFor(model =&gt; model.Model, Model.Model, htmlAttributes: new { @class = "dropdown ", @style = "width:50%;" })
  </code></pre>
  
  <p><br/>
  <br/>
  Html Result</p>
  
  <pre><code>&lt;select id="Model" class="dropdown " style="width:50%;" name="Model"&gt;
     &lt;option value="0"&gt;---Select--&lt;/option&gt;
     &lt;option value="Uno"&gt;Uno&lt;/option&gt;
     &lt;option value="Dos"&gt;Dos&lt;/option&gt;
     &lt;option value="Tres"&gt;Tres&lt;/option&gt;
     &lt;option value="Cuatro"&gt;Cuatro&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p><br/>
  <br/>
  View </p>
  
  <p><img src="https://i.stack.imgur.com/gvDkn.png" alt="enter image description here"></p>
  
  <p><br/>
  The Select List is displaying all the items enabled when in reality option "Dos" should be disabled </p>
  
  <pre><code>&lt;option value="Dos" disabled&gt;Dos&lt;/option&gt;
  </code></pre>
  
  <p>according to the properties.</p>
  
  <p>If someone can explain why to me, or tell me what is wrong with the code. Is there any other way to achieve this? I need item "Dos" to be disabled (grayed out).</p>
  
  <p>Thanks in advance.</p>