Data Source Selector Demo

Data Sources are lists of 'hard coded' names provided by you in Predefined Config to enable you to run searches on the Server.

When a Data Source is selected, the on('SearchChanged') eventfires - stating what triggered the event and providing full state details (including the selected DataSource).

This allows you to perform the necessary search on the server and return data to AdapTable via theGrid APi setGridData method. (A forthcoming release will provide parameterised queries functionality.)

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.

AdapTable Help Resources: