PDA

View Full Version : [CLOSED] Razor Controls Visible



Timothy
May 04, 2012, 7:09 PM
Hello,

Was just wondering how one would set the visibility of a control in Razor before the item renders? I do not want to hide the control from the client, I don't want to render it :)

Any suggestions? The following property is not available:



@(Html.X().Panel()
.Visible(false)
)


Cheers,
Timothy

Vladimir
May 04, 2012, 9:32 PM
if you don't want to render it then it might be better to place it inside 'if' clause

Timothy
May 04, 2012, 9:52 PM
Thanks, please close.

Cheers,
Timothy

Vladimir
May 05, 2012, 4:17 AM
However, we will consider to use Visible property, it should be easy implemented and useful
Thanks for the advice