From e44a7e37b6c7b5961adaffc62b9042b8d442938e Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 13 Nov 2008 09:49:11 +0000 Subject: New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f --- .../tests/test_dojo_data_model_multiStores.html | 291 +++++++++++++++++++++ 1 file changed, 291 insertions(+) create mode 100644 includes/js/dojox/grid/tests/test_dojo_data_model_multiStores.html (limited to 'includes/js/dojox/grid/tests/test_dojo_data_model_multiStores.html') diff --git a/includes/js/dojox/grid/tests/test_dojo_data_model_multiStores.html b/includes/js/dojox/grid/tests/test_dojo_data_model_multiStores.html new file mode 100644 index 0000000..46554e3 --- /dev/null +++ b/includes/js/dojox/grid/tests/test_dojo_data_model_multiStores.html @@ -0,0 +1,291 @@ + + + + dojox.Grid with Dojo.Data via binding. Multiple Store implementations. + + + + + + + + +

dojox.Grid using Dojo.Data stores via simple binding with multiple store implementations.

+

+ 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. +

+

Stores used:

+ + +

dojo.data.ItemFileReadStore:

+ Displays a list of countries through ItemFileReadStore format. + + + + +
+
+ + +

dojox.data.CsvStore:

+ Displays a list of movies that were stored in CSV format. + + + + +
+ +
+ +

dojox.data.XmlStore:

+ Displays a list of books that were stored in XML format. + + + + +
+
+ + +

dojox.data.FlickrStore:

+ Displays Flickr imformation on 3DNY (Dojo Developer Days, New York) from the flickr public photo feed, accessed via the FlickrStore dojo.data implementation. + + + + +
+
+ + +

dojox.data.OpmlStore:

+ Scans an Opml based document for all items of type 'country' + + + + +
+
+ + +

dojox.data.HtmlStore:

+ Loads the grid from an HTML Table. + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-54-g00ecf