title: ExtJS CRUD operations on Grid Panel and Grails backend
body: <p>I am an absolute novice and have been working and struggling with ExtJS ! I am supposed to get a list of user records and dipslay them on Ext grid Panel. I have an ExtJS frontend and Grails ( Groovy Controllers ) backend. I have referred to a few links like: </p>
  
  <pre><code>http://docs.sencha.com/extjs/4.0.7/#!/example/grid/row-editing.html
  http://docs.sencha.com/extjs/4.0.7/#!/example/restful/restful.html
  http://docs.sencha.com/extjs/4.0.7/#!/example/writer/writer.html
  
  The api property ( or ) tag ( or )attribute ( I don't know what it is called ) helps me in getting the list of JSON objects to be displayed in the Grid. Also, when I select a row and click on Delete, the request is reaching the delete action in my controller. But my problems begins here: how do I make sure that:
  
  1) the selected row is deleted from Database? How do I pass the identifier or something to controller so that it will delete the record?
  
  2) When I add a row, how do I pass the field values to backend Controller?
  
  Most of the code is same as given in the restful link above. For reference, this is my Datastore:
  
  https://docs.google.com/document/d/1gQyLCt6xWXTm-OUgYu7hku47r5WcS0my5yPBSKj2B7I/edit?usp=sharing
  </code></pre>