title: How to add or remove partial view Asp.net mvc with jquery?
body: <p>I have a grid (Kendo grid), when occur edit function for any record of grid,I call a partial view with use of Jquery.Now i want after submit partial view, remove it from main view.
  My function for render partial view is :</p>
  
  <pre><code>  function ShowEditRecord(e) {
      var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
      $.ajax(
          {
              url: '/Home/TestEdit/'+dataItem.Id.toString(),
              contentType: 'application/html; charset=utf-8',
              type: 'Get',
              dataType: 'html'
          })
      .success(function(result)
      { $('#EditTestSection').html(result); })
  </code></pre>
  
  <p>My code of controller is :</p>
  
  <pre><code>   public ActionResult TestEdit(Int64 Id)
      {
          var modelItem=getT().Where(a =&gt; a.Id == Id).FirstOrDefault();
          return View (modelItem);
      }
      [HttpPost]
      public ActionResult TestEdit(Models.Test Test)
      {
          base.Update(Test);
          return View();
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ULNEY.png" alt="enter image description here"></p>
  
  <p>After occur edit function :
  <img src="https://i.stack.imgur.com/BlO1l.jpg" alt="enter image description here"></p>