w2grid.onSubmit

Called on user changed data is saved.
onSubmit = function(event)
You can add event listener during the object creation: or after the object has been created: One of the important features of this event is that you can change the data that will be sent to the server. When the event is emitted, the changes property inside event object will have all the variables to be sent to the server. If you modify changes, the grid will send modified version to the server. You can also change url property of event and the request will be sent to the new url.
The event handler is called before the default action of the event is triggered. You can cancel the default action by calling event.preventDefault(). To perform an action after the event is fully processed, define event.onComplete function.
See events page in utilities for more details.

User Comments

comments powered by Disqus