English 中文(简体)
Is there a level limit in dojo treegrid?
原标题:

I ve trying to get the treegrid using forestmodel to work the last several days. It seems to me that there is a limit to the number of level can be displayed using programmatically created treegrid. I modified dojo s "dojox/grid/tests/test_treegrid_model2.html", once I add another level under "Ottwa", I got a "dojo.data.ItemFileReadStore: Invalid item argument." error.

... { id: CA , name: Canada , type: country , population: 33 million , area: 9,984,670 sq km , children:[{_reference: Ottawa }, {_reference: Toronto }]}, { id: Ottawa , name: Ottawa , type: city , population: 0.9 million , timezone: -5 UTC , children:[{_reference: Ottawa1 }]}, { id: Ottawa1 , name: Ottawa1 , type: city1 , population: 0.9 million , timezone: -5 UTC }, ...

If I add the 2 new cities to Canada, it works just fine. ... { id: CA , name: Canada , type: country , population: 33 million , area: 9,984,670 sq km , children:[{_reference: Ottawa }, {_reference: Toronto }, {_reference: Ottawa1 }, {_reference: Ottawa2 }] }, { id: Ottawa , name: Ottawa , type: city , population: 0.9 million , timezone: -5 UTC }, { id: Ottawa1 , name: Ottawa1 , type: city1 , population: 0.9 million , timezone: -5 UTC }, { id: Ottawa2 , name: Ottawa2 , type: city1 , population: 0.9 million , timezone: -5 UTC }, ...

Is there a limit to the number of level can be displayed in TreeGrid? Thanks,

David

最佳回答

OK, I m answering my own question, and hopefully it ll be useful for other people. It is a confirmed bug, the bug fix is scheduled to be released with 1.6. But if you check out the most recent trunk(http://svn.dojotoolkit.org/src/), and just update your TreeGrid.js, it should fix the problem.

问题回答

暂无回答




相关问题
Get Dojo Radio Button Value?

I have an HTML form using dojo and have the following code for a radio button selection choice: dojo.require("dijit.form.RadioButton"); <link href="http://ajax.googleapis.com/ajax/libs/dojo/1....

is it possible to know if a dijit is displayed or not?

i have two divs on a page. each has several dijits. i have atoggle that shows only one div or the other. when i submit the form, i only want to validate the dijits that are in the div that is ...

dijit BorderContainer auto-grow

Is there a way to have a dijit.layout.BorderContainer auto-grow in height? I ve tried setting min-height: 200px; height: auto;, but it won t scale. I ve tried looking at the API, but that thing is a ...

Dojo Tabs as Custom Widgets

I ve created a number of widgets that are loaded as tab panes in a tabcontainer. Everything seems to work well, except I m getting different results when using my custom widgets vs. creating ...

What happened to Dojo DOH?

The Dojo Toolkit used to come with a testing facility called "Doh". It was in the /utils directory. Now when you download dojo-release-1.3.2 the /utils directory is nowhere to be found. Is Doh dead ...

热门标签