AutoGenerated Primary Key Demo

AdapTable requires a Primary Key for much of functionality to work (as it is used to identify each row).

Occasionally, however, this cannot be provided - when users are not able to identify a column in their data which they can guarantee to contain unique data.

When this happens, set autogeneratePrimaryKey to true in Adaptable Options and AdapTable will create one for you.

This should only be used as a last resort as there are a few limitations which AdapTable imposes.

The primary restriction is that all Grid data-related methods (creating, updating and deleting) need to be done via the Grid Api.

This demo is identical to the Basic Set up Demo but with the Primary Key autogenerated.

As you can see initial data set up is done via the setGridData method of Grid Api.

Likewise data updates and deletes use the Grid Api (click the 2 buttons in the Custom Toolbar to see this in action).

AdapTable Help Resources:

Generating dummy data, please wait ...