#17525 closed defect (wontfix)
Declarative datagrid
Reported by: | tinti | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.9.2 |
Component: | DojoX Data | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I am surprised of lack of documentation on dojo widget. I want to implement an datagrid in declarative way. On your website the example doesn't work. There is a tutorial in this infinite virtual space that works???? Anyway i post also my code in here
<script> require(['dojox/grid/DataGrid', 'dojo/data/ItemFileReadStore', 'dojo/window'], function(DataGrid, ItemFileReadStore){ var myStore = new ItemFileReadStore({ data: { identifier: "id", items: [ {id: 1, date: '2010-01-01', name: 'dadasd dsadasdas dasdasdasd asdasdadas asd dasdasdas dadasd dsadasdas dasdasdasd asdasdadas asd dasdasdas dadasd dsadasdas dasdasdasd asdasdadas asd dasdasdas'}, {id: 2, date: '2011-03-04', name: 'dadasd dsadasdas dasdasdasd asdasdadas asd dasdasdas'}, {id: 3, date: '2011-03-08', name: 'dadasd dsadasdas dasdasdasd asdasdadas asd dasdasdas'}, {id: 4, date: '2007-02-14', name: 'dadasd dsadasdas dasdasdasd asdasdadas asd dasdasdas'}, {id: 5, date: '2008-12-26', name: 'dadasd dsadasdas dasdasdasd asdasdadas asd dasdasdas'} ] } }); }); </script> <body class="claro" > <table data-dojo-type="dojox.grid.DataGrid" data-dojo-props="store:myStore, autoWidth: 'true', autoHeight: 'true'"> <thead> <tr> <th field="items.id" width="100px">Id</th> <th field="items.date" width="200px">Date</th> <th field="items.name" width="400px">Name</th> </tr> </thead> </table> </body>
Can someone help me with this??? Thanks
Change History (3)
comment:1 Changed 7 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 7 years ago by
Milestone: | tbd → 1.9.2 |
---|
Note: See
TracTickets for help on using
tickets.
For Dojo 1.9.x, dojox/data/DataGrid and dojox/data/EnhancedGrid have been deprecated ( see the announcement at http://dojotoolkit.org/blog/dojo-1-9-released ). I thought this was in the release notes, but it appears it was not.
We strongly recommend evaluating dgrid, http://dgrid.io/ , or gridx, http://oria.github.io/gridx/ , instead.
http://dojofoundation.org/packages/dgrid/js/dgrid/test/GridFromHtml.html shows examples of declarative forms of dgrid.