Opened 10 years ago

Closed 8 years ago

Last modified 8 years ago

#10823 closed defect (duplicate)

Invalid item argument in dojox.grid.TreeGrid

Reported by: izikz Owned by:
Priority: high Milestone: 1.7
Component: DojoX Grid Version: 1.4.0
Keywords: dojox TreeGrid model Cc:
Blocked By: Blocking:

Description

I tried to add another level to TreeGrid? test: dojox/grid/tests/test_treegrid_model.html

For example:

... { id: 'Nairobi', name:'Nairobi', type:'city',

children:[{_reference:'NairobiA'}, {_reference:'NairobiB'}] },

{ id: 'NairobiA', name:'NairobiA', type:'suburb' }, { id: 'NairobiB', name:'NairobiB', type:'suburb' },

...

I got the following error when expanding 'Kenya':

dojo.data.ItemFileReadStore?: Invalid item argument.

dojo version: 1.4.1(21254)

file name:.../dojo/_base/_loader/bootstrap.js

line number:585

Stack:

"Error(\"dojo.data.ItemFileReadStore?: Invalid item argument.\")@:0\n(null)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:585\n(null,\"children\")@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:636\n(\"children\",0,[object Array])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:585\n(false,[object Array],(function (attr) {return this.store.hasAttribute(item, attr);}),[object Object])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:485\n([object Array],(function (attr) {return this.store.hasAttribute(item, attr);}),[object Object])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:651\n(null)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:586\ninherited([object Object])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:656\n(null)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:528\n(true)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:804\n(2,[object Object],false,[object Array],[object Array],true)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:712\n([object Object],0,[object Array])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:717\n([object Array],(function (cItm, idx) {var nToggle = tcJoin.split(\"|\");nToggle.push(nToggle[nToggle.length - 1] + \"-\" + idx);iStack.push(idx);createRow(nextLevel, cItm, false, nToggle, iStack, parentOpen);iStack.pop();}))@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:598\n(1,[object Object],false,[object Array],[object Array],true)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:713\n([object Object],1,[object Array])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:717\n([object Array],(function (cItm, idx) {var nToggle = tcJoin.split(\"|\");nToggle.push(nToggle[nToggle.length - 1] + \"-\" + idx);iStack.push(idx);createRow(nextLevel, cItm, false, nToggle, iStack, parentOpen);iStack.pop();}))@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:598\n(0,[object Object],false,[object Array],[object Array],true)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:713\n(0,0)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:754\n(0,[object HTMLDivElement])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:1082\n(0,[object HTMLDivElement])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:1074\n(0)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:1136\n(0,false)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:733\n(0,6)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:1430\n([object Array],[object Object])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:736\n([object Array],[object Object])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:487\n([object Array],[object Object])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:595\n([object Array],[object Object])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:548\n([object Object],[object Array])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:772\n([object Object],(function (items, requestObject) {var oldAbortFunction = requestObject.abort
null;var aborted = false;var startIndex = requestObject.start ? requestObject.start : 0;var endIndex = requestObject.count && requestObject.count !== Infinity ? startIndex + requestObject.count : items.length;requestObject.abort = function () {aborted = true;if (oldAbortFunction) {oldAbortFunction.call(requestObject);}};var scope = requestObject.scope dojo.global;if (!requestObject.store) {requestObject.store = self;}if (requestObject.onBegin) {requestObject.onBegin.call(scope, items.length, requestObject);}if (requestObject.sort) {items.sort(dojo.data.util.sorter.createSortFunction(requestObject.sort, self));}if (requestObject.onItem) {for (var i = startIndex; i < items.length && i < endIndex; ++i) {var item = items[i];if (!aborted) {requestObject.onItem.call(scope, item, requestObject);}}}if (requestObject.onComplete && !aborted) {var subset = null;if (!requestObject.onItem) {subset = items.slice(startIndex, endIndex);}requestObject.onComplete.call(scope, subset, requestObject);}}),(function (errorData, requestObject) {if (requestObject.onError) {var scope = requestObject.scope dojo.global;requestObject.onError.call(scope, errorData, requestObject);}}))@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:873\n([object Object])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:551\n(0,true)@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:821\n()@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:887\n()@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:1304\n()@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/bootstrap.js:1285\n()@http://localhost:8090/PriceWise3.00/js/dojox/grid/tests/my_test_treegrid_model.html:106\n()@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/loader.js:165\n()@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/loader.js:271\n()@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/loader.js:254\n([object Event])@http://localhost:8090/PriceWise3.00/js/dojo/_base/_loader/hostenv_browser.js:382\n"

Change History (4)

comment:1 Changed 10 years ago by Yves De Bruyne

From my testing, seems to be closely related to #10872

comment:2 Changed 10 years ago by Nathan Toone

Owner: Nathan Toone deleted

Unassigning my tickets.

comment:3 Changed 8 years ago by evan

Resolution: duplicate
Status: newclosed

duplicate with #10872

comment:4 Changed 8 years ago by evan

Milestone: tbd1.7
Note: See TracTickets for help on using tickets.