Skip to main content
Version: v11.8.5

Data Table - Actions


Data Table is capable of performing CRUD operations on the underlying Database Source. This functionality can be achieved through the table and record level actions like adding, editing and deleting records. In addition, custom actions can also be defined as per the requirements.

Data Table actions include actions at the table-level and the row-level. These options are available from the Actions tab of the Advanced Settings property of the Data Table.

Table-Specific Actions

  • New action which creates a new row when executed. This is provided with the Data Table by default and is programmed to insert the record into the underlying database table.
  • You can add a new custom action for the Table to add a custom action method that has been created by you. The Action will be a JS function.
  • These actions can be displayed either as a Button or an Anchor.
  • Actions can be made accessible using Shortcut Keys. Each of these Table Actions can be assigned a key from the Shortcut Key property. These keys, when used in conjunction with the key code (Alt in Windows & Linux; Alt+Shift in Firefox; Control+Alt in Mac; etc.), will activate or focus the Action.

Row Specific Actions

  • By default two actions are available on Table Rows each programmed to perform the respective action on the underlying database entity:
    • updateRow() - to save changes made to the row fields
    • deleteRow() - to delete the selected row
  • You can add a custom row action to add a custom method that has been created by you.

Actions Visibility

Visibility can be set based upon a column value within the row, for example, to show the  New button only if the Id value is 1, then bind the show property from Use Expression to row.id === 1

Actions Layout

You can configure the layout of the action column in terms of title for the column - set by default to Actions; the position of the column in the table - set to last by default; width of the column; width Unit for the above-mentioned width; class for custom column styles.