|
#1
|
|||
|
|||
|
I have found a problem in RC2 when a list grid is on an inactive tab.
If autoFetchData is false and I try to call fetchData on the grid before it has been rendered (by selecting that tab) I get the error "_5 is undefined at http://localhost:8084/isomorphic/system/development/ISC_Grids.js line 912". If I simply change my code to place grid on the first tab (so it is rendered when the page is loaded) it does not get this error. Likewise, if autoFetchData is true the exact same code does not get an error. It may have something to do with the datasource because when I tried to create a test case with the data in-line the problem also went away. |
|
#2
|
|||
|
|||
|
I think I narrowed it down to the sortFieldNum property. For some reason if I don't specify this the error goes away.
It still does not seem to cause a problem if the data is in-line, so here is my grid and data source declaration: Code:
availableValuesGrid: isc.ListGrid.create({
showEdges: true,
alternateRecordStyles: true,
showHeader: false,
leaveScrollbarGap: false,
showAllRecords: true,
emptyMessage: "",
// sortFieldNum: 0,
autoFetchData: false,
fields: [
{name: "title", type: "text"}
],
dataSource: isc.DataSource.create({
dataFormat: "json",
clientOnly: true,
dataURL: "inquiry/valuelist",
fields: [
{name: "title", type: "text"},
{name: "name", type: "text", primaryKey: true},
{name: "um", type: "text"}
]
})
}),
|
|
#3
|
|||
|
|||
|
Hi Mark
Thanks for the update This issue has been resolved since the 7.0RC release - the fix will be part of 7.0 final. |