Hi, I have this sectionStack as below. I want to get to the TreeGrid declared in 4th section , how do I do that.. ( don't want to use ID's )
see line 5 below. tried (this.getSections())[3].getItems[0] and does getSections return list of the objects?
Thankyou
see line 5 below. tried (this.getSections())[3].getItems[0] and does getSections return list of the objects?
Code:
isc.SectionStack.create({
visibilityMode: "multiple",
/* Sections 3: TreeGrid */
localFetchData: function() {
var localAlertGrid = (this.getSections())[3].getItems[0];
localAlertGrid.fetchData(null, function() {
localAlertGrid.getData().openAll();
});
},
sections: [
{
canCollapse: false,
showHeader: false,
hidden: false,
expanded: true,
resizeable: false,
items: [ // Some items ]
},
{
canCollapse: false,
showHeader: false,
hidden: false,
expanded: true,
resizeable: false,
items: [ isc.DynamicForm.create({
// ....
})
]
},
{
canCollapse: false,
showHeader: false,
expanded: true,
resizeable: false,
hidden: true,
items: [ isc.DynamicForm.create({
// ....
})
]
},
{
canCollapse: false,
showHeader: false,
resizeable: true,
expanded: true,
hidden: false,
canHide: false,
items: [
isc.TreeGrid.create({
editEvent: "none",
editByCell: false,
canEdit: false,
autoSaveEdits: true,
editOnFocus: true,
selectOnEdit: false,
fixedRecordHeights: false,
wrapCells: true,
autoFetchData:false,
dataSource: someDS,
loadDataOnDemand: false,
headerHeight:30,
cellHeight:25,
openerImage: null,
// nodeIcon: "../images/user_16.png",
// folderIcon: "../images/wksp_gp_16.png",
openIconSuffix: "",
closedIconSuffix: "",
alternateRecordStyles: true,
selectionType: "none",
showSortArrow: "none",
leaveScrollbarGap: false,
height: "100%",
// customIconProperty: "alertCustomIcon",
checkboxCount: 0,
fields: [
// somefield...
]
})
]
}
]
});
Comment