This page demonstrates the Grid can display data accessed by dojo.data implementing Datastores. Each of the datastores used stores data in a different format, and as this test and demonstration page shows, the logic for rendering the data is virtually identical. You define your source store, you define the model for accessing the data, which is ij this case the dojox.grid.data.DojoData model and then you define the layout, which maps the data attribute names to columns in the grid. You can even perform cusomization of what is displayed, as demonstrated in the dojox.data.FlickrStore layout. The image url is displayed as a clickable link that opens a new page.
The choice of stores used were ones that did not require back end services to function for sake of simplicity. There is no reason that dojox.data.QueryReadStore could not be used with grid as well, it just requires a back end service to send it the query results.
|Column 1||Column 2||Column 3||Column 4|
|This||is||empty in column 3|