[Dojo-interest] Problem with Dojo Grid

Christopher Barrett christopher.barrett at doit.wisc.edu
Fri Jun 25 15:20:55 EDT 2010


What is it doing or not doing?
-Chris

Archana Babuta wrote:
> What is wrong with this code ?
>
> dojo.addOnLoad(function() {
>             // our test data store for this example:
>             var store4 = new dojo.data.ItemFileReadStore({ 
> 'identifier': 'Title',  'label': 'Title','items':[{ Title:'ABCD', 
> Year:'2010', Producer:'US'}]});
>                  //new dojox.data.CsvStore({ url: "TEST.csv"  });    
>        
>
>             // set the layout structure:
>             var layout4 = [{
>                 field: 'Title',
>                 name: 'Title of Movie',
>                 width: '200px'
>             },
>             {
>                 field: 'Year',
>                 name: 'Year',
>                 width: '50px'
>             },
>             {
>                 field: 'Producer',
>                 name: 'Producer',
>                 width: 'auto'
>             }];
>
>             // create a new grid:
>             var grid4 = new dojox.grid.DataGrid({
>                 query: {Title: '*'},
>                 store: store4,
>                 rowsPerPage: 10,               
>                 rowSelector: '20px',
>                 structure: layout4
>             },
>             document.createElement('div'));           
>
>             // append the new grid to the div "gridContainer4":
>             dojo.byId("gridContainer4").appendChild(grid4.domNode);
>
>             // Call startup, in order to render the grid:
>             grid4.startup();
>         });
> ------------------------------------------------------------------------
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>   



More information about the Dojo-interest mailing list