w2grid.toolbarDelete

Called when user clicks the Delete button on the toolbar.
toolbarDelete([force])
force boolean, indicates whether to do delete without confirmation

Description

When user clicks the Delete button on the toolbar and there are selected records a confirmation dialog will be displayed. If user confirms, this method will be called second time with force argument set to true and the grid will delete selected records.
If you have local data source, selected records will be deleted from the .records array, if your data source is remote (see .url property) the grid will submit delete-records command to the server side.
This method triggers .onDelete event handlers.
If you have grid defined in the following way: You can do:

User Comments

comments powered by Disqus