How to load remote data in javascript grid?

Same domain requests

Same domain requests can be handled by

  • set dataModel.url to the absolute or relative url in javascript
  • set dataModel.location to 'remote' in javascript
  • set dataModel.dataType to 'json' in javascript
  • send json response from server in the format:
    {data: [row1, row2, row3, ...]}

Cross domain requests

Any RESTful conversation based on GET requests can be converted into a jsonp ( for cross domain access ) by