w2grid.url

URL to the remote data source.
String or Object, default = ''
If the .url property is defined, then every time the grid needs to refresh, search, or sort records, they will be pulled from the .url. If grid needs to save the records, new changes will be submitted to this .url as well.
URL can be defined during object creation: You may define different URLs for different operations (get records, delete records, save records) URL can be defined during run-time: If you do not specify any .url, then the assumed data source is local. You can add/remove records, user can search and sort records and all actions will be performed locally. You can optionally use .load() method to load records from the server without switching grid to remote data source.
See grid overview page for data structured passed to and from server side url.

User Comments

comments powered by Disqus