Please set the 'state' to 'closed' for all tree nodes.
[
{
id: 1,
text: "My Documents",
state: "closed",
children: [
{
id: 11,
text: "Photos",
state: "closed",
children: [
{
id: 111,
text: "Friend"
},
{
id: 112,
text: "Wife"
},
{
id: 113,
text: "Company"
}
]
}
]
}
];