This is a migrated thread and some comments may be shown as answers.
DataSource, any other properties ?
0 Answers 37 Views
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 31 Mar 2012, 09:45 AM
The documentation shows a minimalist example of DataSource of
dataSource: [
            {
                text: "Item 1",
                items: [
                    { text: "Item 1.1" },
                    { text: "Item 1.2" }
                ]
            },
            { text: "Item 2" }
        ]

The source code for treeview template suggests there might be other properties, such as expanded, allowed in the dataSource.

I tried this which did not seem to work
text: "Item 1", expanded: true,
                items: [
                    { text: "Item 1.1" },
                    { text: "Item 1.2" }

Is treeview data source restricted to having only the properties items: and text: ?

No answers yet. Maybe you can help?

Asked by
Richard
Top achievements
Rank 1
Share this question
or