Login Register

new

New Dojo book: Practical Dojo Projects

Hi everyone,

I'd like to announce that my new book, Practical Dojo Projects, is now available from Apress (more precisely, it'll be available in the next few days). For details: http://www.apress.com/book/search?searchterm=zammetti&act=search

dijit.tree programmatically got an "error loading root": "query is not defined"

Hi there !

I'm in front of a boring problem. I try to set up a dijit.Tree programmatically, and I always got the same error :


error loading root: ReferenceError: query is not defined message=query is not defined

Here is my code :

var oTree = {
identifier: 'id',
label: 'name',
items: [
{ id: '0', name: 'Fruits', top: true, children: [ {_reference: 1}, {_reference: 4} ] },
{ id: '1', name: 'Citrus', items: [ {_reference: 2}, {_reference: 3} ] },
{ id: '2', name: 'Orange'},

Adding extra column to grid

Hi,
i'm trying to use dojox.grind for displaying data.
Everything works fine until i try to dinamically add columns to the table.
I need to add some columns and then refresh the table, then change the extra columns and refresh the data again.
When i need to rebuild the table header i acquire the base structure in json format from a file, then i add to it the extra columns.
The array composed by base structure + extra columns is passed as argumento to setStructure. So on it works, i see the new columns.

Syndicate content