title: How to call event for command button in the grid
body: <p>I have various command buttons in my Grid such as 'Insert', 'Update', etc.... I customize the Grid adding the buttons manually and placing ID's like btnInsert, btnUpdate, and so on. The buttons are shown when I click the 'Insert' or 'Update' image.</p>
  
  <p>My issue is: How can I directly call the event handler for the above buttons? I just want to validate the inputs before the data is saved to the DB. Since the buttons are inside the Grid, I am finding it difficult to call the button's event handler. It would be nice to know of any ways this is possible.</p>
  
  <p>I used the below code:</p>
  
  <pre><code>$('#btnUpdate').click(function(e)s {
          alert('checking the fun');
          e.preventDefault();
      });
  </code></pre>
  
  <p>I also used the Update button's client ID:</p>
  
  <pre><code>$('#RadGrid1_ctl00_ctl05_btnUpdate').click(function(e){
   //Input validation
  });
  </code></pre>
  
  <p>-Thanks</p>