title: how to render partial view conditionally
body: <p>i'm having a view (parent view) consisting of a child view (partial view)
  as below,</p>
  
  <pre><code>@{ Html.RenderPartial("_partialViewName",Model);}
  
  @(Html.X().Panel().
          Items(Html.X().Container().ID("cntrGenerateReportResult")
            )
      )
  </code></pre>
  
  <p>is it possible to show/hide (Render) the partial view conditionally based on 
  a property value from Model</p>
  
  <p>i tried,</p>
  
  <pre><code>@if(Model.Type != "RER")
  { 
      Html.RenderPartial("_partialViewName", Model); 
  }
  </code></pre>
  
  <p>but not getting the panel below rendered..</p>