title: how to close a add new record popup wndow in jquery jtable on saving in mvc?
body: <p>I have used the jTable plugin of jQuery in my CRUD application. My problem is, when I click on the Add New Record, a confirmation dialog appears in but after filling the details and clicking the Save button the dialog doesn't disappear, but the data is added while i refresh the Jtable..how i can close the popup window?</p>
  
  <p>my View contains</p>
  
  
  
  <p></p>
  
  <pre><code>$(document).ready(function () {
  
      $('#StudentTableContainer').jtable({
          title: 'Employee List',
          paging: true, //Enable paging
          sorting: true, //Enable sorting
          defaultSorting: 'Name ASC',
          //openChildAsAccordion: true, //Enable this line to show child tabes as accordion style
          actions: {
              listAction: '@Url.Action("Details")',
              deleteAction: '@Url.Action("Delete")',
              updateAction: '@Url.Action("Update")',
              createAction: '@Url.Action("Create")'
  
  
          },
          recordAdded: function (event, data) {
              $('#StudentTableContainer').jtable('reload');
          },
          fields: {
            UserId: {
                  key: true,
                  create: false,
                  edit: false,
                  list: false
              },
              FirstName: {
                  title: 'FirstName',
                  width: '10%'
              },
            LastName: {
                 title: 'LastName',
                  width: '10%'
            },
            EMail: {
                title:'EMail',
                  width: '10%'
            },
            Address: {
                title: 'Address',
                  width: '10%'
            },
            PhoneNo: {
                title:'PhoneNo',
                  width: '10%'
            },
            Company: {
                title:'Company',
                width:'10%'
            },
            Designation: {
                title:'Designation',
                width:'10%'
            }
        }
    });
  
    //Load person list from server
    $('#StudentTableContainer').jtable('load');
  </code></pre>
  
  <p>and my controller has Create method contains</p>
  
  <p>[HttpPost]
     public JsonResult Create(UserList userList)
          {</p>
  
  <pre><code>        try
          {
              userRepository.InsertUser(userList);
              return Json(new { Result = "OK" });
  
          }
  
  
  
          catch (Exception exception)
          {
              return Json(new { Result = "ERROR", Message = exception.Message });
          }
      }
  </code></pre>