title: JSGrid Callback Methods
body: <p>I am building grid using <em>JSGrid</em> (js-grid.com). I want call back methods to implement validations before adding new record or updating record. Documentation provided on website is not clearly mentioned how to implement one. Please refer <a href="http://js-grid.com/docs/#callbacks" rel="nofollow">http://js-grid.com/docs/#callbacks</a>.
  I need help how can i implement callback method cause i am new to JSGrid &amp; Scripting. Following is my sample code. Please guide me where to put callback methods.</p>
  
  <pre><code>    $(function() {
  
      $("#jsGrid").jsGrid({
          height: "90%",
          width: "100%",
  
          filtering: true,
          editing: true,
          sorting: true,
          paging: true,
          autoload: true,
  
          pageSize: 15,
          pageButtonCount: 5,
  
          deleteConfirm: "Do you really want to delete the client?",
  
          controller: db,
  
          fields: [
              { name: "Name", type: "text", width: 150 },
              { name: "Age", type: "number", width: 50 },
              { name: "Address", type: "text", width: 200 },
              { name: "Country", type: "select", items: db.countries, valueField: "Id", textField: "Name" },
              { name: "Married", type: "checkbox", title: "Is Married", sorting: false },
              { type: "control" }
          ]
      });
  
  });
  </code></pre>
  
  <p>Thanks in advanced.</p>