Nightly build 2010-11-25
My code:
isc.DataSource.create({
ID:"entityTypesDS",
fields: [ { name: "title" }, {name: "entityType"} ],
clientOnly: true,
testData: [
{title: "Сессии", entityType: "Session"},
{title: "Станции", entityType: "Station"},
{title: "Сотрудники", entityType: "Employee"}
]
});
isc.ListGrid.create({
ID: "entityTypesList",
showHeader: false,
leaveScrollbarGap: false,
showFilterEditor: true,
filterOnKeypress: true,
dataProperties: {
fetchMode: "local",
useClientFiltering: true
},
fields: [ { name: "title" } ],
dataSource: "entityTypesDS",
autoFetchData: true,
// behavior:
generateDoubleClickOnEnter: true,
recordDoubleClick: ".."
});
isc.SectionStack.create({
ID: "leftSideLayout",
width: 280,
showResizeBar: true,
visibilityMode: "multiple",
animateSections: true,
sections: [
{ title: "Объекты системы", autoShow: true, items: [entityTypesList] },
{ title: "Отчеты", autoShow: true, items: [] },
{ title: "Администрирование", autoShow: false, items: [
isc.IButton.create({
title: "Open debug console",
click:"isc.showConsole()",
width: "100%"
})]
}
]
})
Callstack:
getField()
_canFocusInEditor()
findNextEditCell()
setFields()
prepareForDraw()
draw()
invokeSuper()
Super()
draw()
drawPeers()
_completeHTMLInit()
draw()
invokeSuper()
draw()
layoutChildren()
drawChildren()
draw()
layoutChildren()
drawChildren()
draw()
layoutChildren()
drawChildren()
draw()
(?)()
handleEvent()
handleLoad()
ListGrid.js:
_canFocusInEditor : function (rowNum, colNum) {
22971
22972 var fieldName = this.getFieldName(colNum),
22973 editForm = this._editRowForm,
22974 editItem = editForm ? editForm.getItem(fieldName) : null;
22975 if (editItem) return editItem._canFocus();
22976
22977 var field = this.getField(fieldName);
22978 if (field.canFocus != null) return field.canFocus;
Here field is null and accessing field.canFocus fails.