Access the DataSource

Regardless of the data source you use, the Lookup always wraps it in a DataSource. Call the getDataSource() method to get the instance of the DataSource.

jQuery
JavaScript
var lookupDataSource = $("#lookupContainer").dxLookup("getDataSource");
Angular
TypeScript
import { DxLookupModule, DxLookupComponent } from 'devextreme-angular';
// ...
export class AppComponent {
    @ViewChild(DxLookupComponent) lookup: DxLookupComponent;
    lookupDataSource = this.lookup.instance.getDataSource();
}
@NgModule({
     imports: [
         // ...
         DxLookupModule
     ],
     // ...
 })

Now, you can call any method the DataSource exposes. For example, you can reload data using the load() method.

JavaScript
lookupDataSource.load();
See Also