title: How do i hide columns of a kendo grid after a a actionresult
body: <p>How do i hide columns of a Kendo Grid after an ActionResult
  I'm using a kendo grid to show some information. In this grid i want to implement a global search with the help of a textbox. Until here all is ok, the search works well and all.</p>
  
  <p>Then I want to hide 1 of my columns, if the column status of the list that populates my grid is false.</p>
  
  <p>how do I achieve this? I tried many approaches but with no success.</p>
  
  <p>My Grid:</p>
  
  <pre><code>@(Html.Kendo().Grid(Model)
            .Name("grid")
            .Events(x =&gt; x
                  .Edit("onEdit")
                  .SaveChanges("SaveChanges")
                  .DataBound("DataBound")
  
            )
            .Columns(columns =&gt;
            {
                    columns.Bound(p =&gt; p.ImageUrl).Title("Image");
                    columns.Bound(c =&gt; c.Status).Title("status").Hidden(true);
                    columns.Bound(c =&gt; c.Name).Title(T("Name"));
                    columns.Bound(c =&gt; c.ColumnToHide).Title(T("ColumnToHide"));
                    }
                    )
  </code></pre>
  
  <p>...</p>
  
  <pre><code>.Read(read =&gt; read.Action("GetList",
  "GetList").Type(HttpVerbs.Get).Data("selectedFilter"))
                    )
  </code></pre>
  
  <p>My function in controller:</p>
  
  <pre><code> public ActionResult GetList([DataSourceRequest] DataSourceRequest request, string valueToSearch)
      {
          var result = this.GetList(valueToSearch).ToList();
  
          return this.Json(result.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
      }
  </code></pre>
  
  <p>I have tried to hide the columns in the databound but it's not called when the grid is re-populated</p>
  
  <p>thanks in advance</p>