Hi All,

any body can help me on this issue . I have multiple floders.. i am not able to collapse my parent folder .. please look on code bellow. Here you can see 'Maintenance' has two id .Because on click on Maintanance has two functionality
1). open its child nodes.
2). display contents..


[{
text:'HDGE-27878',
expanded: true,
children:[{
text:'Designation',
expanded: true,
children:[{
text:'Strategy',
id:'idStrategy',
leaf:true
} ,
{
text:'Allocation',
id:'Allocation',
leaf:true
}]
} ,
{
text:'Maintenance',
expanded:true,
collapsible:true,
id:'Maintenance',
leaf:false,
children:[{
text:'12-Oct-2009',
expanded: false,
children:[
{
text:'Prospective',
expanded: true,
children:[{
text:'Scenario 1',
id:'Oct2009ProspectiveScenarioOne',
leaf:true
},{
text:'Scenario 2',
id:'Oct2009ProspectiveScenarioTwo',
leaf:true
} ]
},{
text:'Retrospective',
id:'Oct2009Retrospective',
leaf:true
},{
text:'Accounting Entries',
id:'Oct2009Accounting',
leaf:true
}]

},{
text:'12-Nov-2009',
expanded: false,
children:[{
text:'Prospective',
id:'Nov2009Prospective',
leaf:true
},{
text:'Retrospective',
id:'Nov2009Retrospective',
leaf:true
},{
text:'Accounting Entries ',
id:'Nov2009Accounting',
leaf:true
}]

},{
text:'12-Dec-2009',
expanded: false,
children:[{
text:'Prospective',
id:'Dec2009Prospective',
leaf:true
},{
text:'Retrospective',
id:'Dec2009Retrospective',
leaf:true
},{
text:'Accounting Entries',
id:'Dec2009Accounting',
leaf:true
}]
},{
text:'12-Jan-2010',
expanded: false,
children:[{
text:'Prospective',
id:'Jan2010Prospective',
leaf:true
},{
text:'Retrospective',
id:'Jan2010Retrospective',
leaf:true
},{
text:'Accounting Entries',
id:'Jan2010Accounting',
leaf:true
}]
},{
text:'12-Feb-2010',
expanded: false,
children:[{
text:'Prospective',
id:'Feb2010Prospective',
leaf:true
},{
text:'Retrospective',
id:'Feb2010Retrospective',
leaf:true
},{
text:'Accounting Entries',
id:'Feb2010Accounting',
leaf:true
}]
}]
},{
text:'Termination',
expanded: true,
children:[{
text:'12-Oct-2009',
expanded: false,
children:[{
text:'Accounting Entries',
id:'TerminationOct2009',
leaf:true
} ]
} ]
} ,{
text:'Documentation',
id:'Documentation',
leaf:true
} ,{
id:'Maintenance',
hidden:true,
collapsible: true,
leaf:true
},{
text:'Audit Log',
expanded: true,
children:[{
text:'12-Oct-2009',
expanded: false,
children:[
{
text:'Prospective',
expanded: true,
children:[{
text:'Scenario 1',
id:'Oct2009ScenarioOneAuditLogs',
leaf:true
},{
text:'Scenario 2',
id:'Oct2009ScenarioTwoAuditLogs',
leaf:true
} ]
},{
text:'Retrospective',
id:'Oct2009RetrospectiveAuditLogs',
leaf:true
},{
text:'Accounting Entries',
id:'Oct2009AccountingTwoAuditLogs',
leaf:true
}]

},{
text:'12-Nov-2009',
expanded: false,
children:[{
text:'Prospective',
leaf:true
},{
text:'Retrospective',
leaf:true
},{
text:'Accounting Entries ',
leaf:true
}]

},{
text:'12-Dec-2009',
expanded: false,
children:[{
text:'Prospective',
leaf:true
},{
text:'Retrospective',
leaf:true
},{
text:'Accounting Entries',
leaf:true
}]
},{
text:'12-Jan-2010',
expanded: false,
children:[{
text:'Prospective',
leaf:true
},{
text:'Retrospective',
leaf:true
},{
text:'Accounting Entries',
leaf:true
}]
},{
text:'12-Feb-2010',
expanded: false,
children:[{
text:'Prospective',
leaf:true
},{
text:'Retrospective',
leaf:true
},{
text:'Accounting Entries',
leaf:true
}]
}]
} ]
}]