dataSource kendo.data.HierarchicalDataSource

The data source of the widget. Configured via the dataSource option.

Changes of the data source will be reflected in the widget.

Important: Assigning a new data source would have no effect. Use the setDataSource method instead.

Example - add a data item to the data source

<input id="dropdowntree"/>
<script>
  $("#dropdowntree").kendoDropDownTree({
    dataSource: [
      { name: "Apples" },
      { name: "Oranges" }
    ],
    filter: "startswith",
    dataTextField: "name",
    dataValueField: "name"
  });
  var dropdowntree = $("#dropdowntree").data("kendoDropDownTree");
  dropdowntree.dataSource.add({ name: "Appricot" });
  dropdowntree.open(); 
</script>
In this article