I understand that DropDownList
is already readonly , since I can not change the values of the options, however I need to maintain the uniform behavior of the screen.
In query mode I can assign a readonly to TextBox
and the text is selectable (with double click ) but unalterable. I want to allow the user to also select the text of DropDownList
, so I can not assign disabled to the field.
@Html.DropDownListFor(m => m.MeuValor, Model.MinhaLista, width: 100, renderContainer: false, showDisplayName: false, tipoUnidadeHtml: TipoUnidadeHtml.Porcentagem)
This is my code. I can not add (object)new { @disabled = "disabled" })
because there the double click does not work.