DHTMLX Docs & Samples Explorer

API methods

  • add - adds record to the dataset.
  • attachEvent - attaches handler for a custom event.
  • bind - binds 2 dataStore objects (just for filtration one of datasets. Changes in the master dataStore [creating, updating, deleting] doesn't reflect in the bound dataStore).
  • clearAll - clears a dataset.
  • dataCount - returns size of a dataset.
  • detachEvent - detaches handler from a custom event.
  • exists - checks if an item with the defined id exists.
  • filter - filters a dataset.
  • first - gets ID of the first item.
  • idByIndex - returns an item's ID by the index.
  • indexById - returns an item's index by the ID.
  • item - returns hash of data related to the specific item.
  • last - gets ID of the last item.
  • load - adds data from an external URL.
  • next - gets the next ID.
  • parse - adds data from a string or an object.
  • previous - gets the previous ID.
  • remove - removes item by the ID.
  • saveBatch - makes simultaneous saving several components.
  • serialize - serializes data to a JSON object.
  • set - associates hash of data with ID.
  • sync - binds 2 dataStore objects (changes in the master dataStore [creating, updating, deleting] reflect in the bound dataStore).
  • sort - sorts a dataset.
  • update - updates a dataset.