A DataSource configuration object or instance, specifying the TreeView items.

It can also be a RecursiveDataSource instance, which is a special case of a data source that is called recursively to get any children items.

The DataSource instance is passed an extra parameter in its read() - a dictionary, containing the parent node. Examples of that can be seen here and here.

<div id="treeview"></div>

<script type="text/javascript">
    jQuery(function ($) {
            dataSource: {
                data: [
                    { text: "one", expanded: true, items: [
                        { text: "child of one", checked: true },
                        { text: "another child", disabled: true }
                    ] }