Access the DataSource

Regardless of the data source you use, the TreeList always wraps it in the DataSource. To get a DataSource instance, call the getDataSource() method.

JavaScript
var treeListDataSource = $("#treeListContainer").dxTreeList("getDataSource");

You can now call any method exposed by the DataSource. For example, you can reload data using the reload() method.

JavaScript
treeListDataSource.reload();
See Also