[CLOSED] Razor Controls Visible

  1. #1

    [CLOSED] Razor Controls Visible

    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
    Last edited by Daniil; May 04, 2012 at 9:44 PM. Reason: [CLOSED]
  2. #2
    if you don't want to render it then it might be better to place it inside 'if' clause
  3. #3
    Thanks, please close.

    Cheers,
    Timothy
  4. #4
    However, we will consider to use Visible property, it should be easy implemented and useful
    Thanks for the advice

Similar Threads

  1. [CLOSED] Controls not visible under Internet Explorer
    By pk.net in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jul 15, 2013, 12:34 PM
  2. [CLOSED] Razor syntax inside Ext Controls
    By mcfromero in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 08, 2012, 7:29 PM
  3. [CLOSED] [RAZOR] Iterate over controls in FormPanel
    By gets_gui in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: May 09, 2012, 2:20 PM
  4. [CLOSED] custom controls not visible
    By AnulekhaK in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 23, 2012, 5:00 AM
  5. Replies: 2
    Last Post: Oct 08, 2009, 9:49 AM

Posting Permissions