DataStore

DataStore is a component which was basically designed to perform a function of a data store. But at the same time, it's a full-fledged DHTMLX component with its own API.

Main Use Case

Storing data that's used by several components on a page. You can use more than one DataStore. They can be linked or not.

Description:

  1. The component has no graphical representation and used just to store data. We can compare DataStore with database table or view. UI components can be filled from it. You can also establish relationships between different DataStores the same as between tables in a database.
  2. Any data manipulation is made directly in dhtmlXDataStore object (not in a component that represents the data): sorting, filtering, deleting, adding, updating. For example, to delete a record from a grid (or some other component that takes data from DataStore) you need to delete this record from DataStore and it will be removed from all the bound components automatically.
  3. Controls relations between components. If you link grid and form to the same DataStore, details of the record selected in the grid will be shown in the form automatically. No additional coding is necessary.
API reference
Guides

Configuring DataStore

Discusses the initialization of DataStore and the ways of customizing this component: choosing a syntax template and setting a default scheme for data records.

Working with DataStore

Describes the possibilities of binding DataStore with other components, integrating it with server and using DataStore in practice.
Back to top