This example shows how to use RowActions plugin. Row actions are small images, icons, optionally followed by a text, that fit into a grid column.
When an icon is clicked beforeaction event is fired first followed by action event. Action can be cancelled by returning false from beforeaction event handler.
Both events are fired with grid, record, action, rowIndex and colIndex parameters that can be used to identify and execute the requested action.
Icons, optional texts and icon tooltips can be defined either statically; they are same for all grid rows in this case, or they can be bound to the grid store record fields; they can be different in each grid row in this case.
This example shows actions bound to the grid records.
You can see the code used for this example by right clicking the page and selecting "View Page Source" item from the context menu.
The example is powered by Apache web server and PHP 5.2.5. PHP script that returns grid rows is included in the download package.