title: Passing model to controller from view in JTable MVC using jQuery
body: <p>I am trying to pass entire model from View to Controller using jTable. 
  Here is the code for view </p>
  
  <p>I am having a filter criteria based on which the table will be loaded.
  Say DropdownList of ModelId and ModelName, on selection,followed by click of a button, the function below executes.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function GetModels() {
  
          var model = {
          ModelId:$("#ModelId").val(),
          ModelName:$("#ModelName").val(),
          ModelAge:$("#ModelAge").val()
       };
  
  
      $(document).ready(function () {
          $('#PersonTableContainer').jtable({
              title: 'Table of Models',
              actions: {
                  listAction: '/Controller/ActionName'
  
              },
  
              fields: {
                  ModelName: {
                     title: 'ModelName',
                      width: '30%',
                      list: false
                  },
  
                  ModelId: {
                      title: 'ModelId',
                      width: '30%',
                      key: true,
                      create: false,
                      edit: false
                  }
  
                  ModelAge: {
                      title: 'ModelAge',
                      width: '30%',
                      create: false,
                      edit: false
                  }
              }
          });
          $('#PersonTableContainer').jtable('load', { ModelName: model });
  
  
      });
      }
  </code></pre>
  
  <p>Here is the code for the controller.</p>
  
  <pre><code>public JsonResult GetAppropriateModel( ModelName ModelName)
      {
          try
          {
             FillAppropriateModel(ModelName);
          }
  
          catch(Exception e)
          {
              return Json(new { Result = "Error", Message=e.Message });
          }
  
      }
  </code></pre>
  
  <p>I am kind of new in AJAX and I am facing an issue where in the returned model is null, However if I cause normal submit-button postaction, then the model is retained.. I googled and got examples where they pass discrete elements and not entire model.
  --Edit --
  This is the link I referred.
  <a href="http://www.jtable.org/Demo/Filtering" rel="nofollow">http://www.jtable.org/Demo/Filtering</a>
  <br>
  <br>
  Kindly help.
  Thanks.</p>