-3
I understand that the DropDownList
already is 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 at the TextBox
and the text is selectable (double click) but unchangeable. I want to allow the user to also select the text of the DropDownList
, so I can’t assign disabled to the countryside.
@Html.DropDownListFor(m => m.MeuValor, Model.MinhaLista, width: 100, renderContainer: false, showDisplayName: false, tipoUnidadeHtml: TipoUnidadeHtml.Porcentagem)
this is my code. I cannot add the (object)new { @disabled = "disabled" })
because then the double click does not work.
But do you have to put a dropdown on the visuals? I suppose you’re creating a page visualizing the content that was edited, if so, you could simply put the value.
– sir_ask
Your question is very confused. It seems to me a film that I start to watch in half and I don’t see until the end. Of what
DropDownList
Are you talking? Where’s your code?– Victor Stafusa
@Html.DropDownListFor(m => m.MeuValor, Model.MinhaLista, width: 100, renderContainer: false, showDisplayName: false, tipoUnidadeHtml: TipoUnidadeHtml.Porcentagem)
this is my code.. I cannot add the(object)new { @disabled = "disabled" })
because there the double click doesn’t work.– rLinhares
Edit the question by placing the code there, otherwise it gets a little hard to understand.
– Victor Stafusa