Data Sources are lists of 'hard coded' names provided by you in Predefined Config to enable you to run searches on the Server.
They are particularly useful if you have a list of Stored Procedures you want to to run, or a hardcoded list of named entities like Books or Entitlements.
When a Data Source is selected, the Search Changed Event fires - stating what triggered the event and providing the search and filter sections of the State (including the selected DataSource).
This allows you to perform the necessary actions on the server and return data to AdapTable via the Grid APi setGridData method.
Note: A forthcoming release will provide parameterised queries functionality so you can more easily control what is searched for on the server.
In this example we created 4 Data Sources. We subscribe to SearchChanged event, fetch the relevant data and send to AdapTable via the Api. We also ouput the event info to the console for your convenience.