heekim1
2015-02-24 06:00:12 UTC
I have been using DataGrid and JsonRest store successfully.
Now I am replacing DataGrid with dgrid while keeping the JsonRest store.
Here is the my code,
<script>
require([
"dgrid/OnDemandGrid",
"dojo/_base/declare",
"dojo/store/JsonRest",
"dojo/store/Cache",
"dojo/store/Memory",
"dojo/domReady!"
],
function(Grid, declare, JsonRest, Cache, Memory){
var tmpStore = JsonRest({target:"/test"});
var myStore = new Cache(tmpStore, new Memory());
var grid = new (declare([Grid]))({
store: myStore,
columns: {
x: 'X',
y: 'Y',
z: 'Z'
}
}, 'grid');
grid.startup();
});
It renders its header.
However, I have an unexpected error:
"_StoreMixin found store property but not collection; this is often the sign
of a mistake during migration from 0.3 to 0.4"
It didn't get and render data from server.
I tried the latest dgrid as well as dgrid-0.3.0, dgrid-0.3.16 and
dgrid-0.4.0 with dojo-release-1.9.1-src.
I don't see any difference.
please help me
Thank you
Hee
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Error-in-integrating-dgrid-and-JsonRest-tp4005409.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
Now I am replacing DataGrid with dgrid while keeping the JsonRest store.
Here is the my code,
<script>
require([
"dgrid/OnDemandGrid",
"dojo/_base/declare",
"dojo/store/JsonRest",
"dojo/store/Cache",
"dojo/store/Memory",
"dojo/domReady!"
],
function(Grid, declare, JsonRest, Cache, Memory){
var tmpStore = JsonRest({target:"/test"});
var myStore = new Cache(tmpStore, new Memory());
var grid = new (declare([Grid]))({
store: myStore,
columns: {
x: 'X',
y: 'Y',
z: 'Z'
}
}, 'grid');
grid.startup();
});
It renders its header.
However, I have an unexpected error:
"_StoreMixin found store property but not collection; this is often the sign
of a mistake during migration from 0.3 to 0.4"
It didn't get and render data from server.
I tried the latest dgrid as well as dgrid-0.3.0, dgrid-0.3.16 and
dgrid-0.4.0 with dojo-release-1.9.1-src.
I don't see any difference.
please help me
Thank you
Hee
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Error-in-integrating-dgrid-and-JsonRest-tp4005409.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/
Dojo-***@mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/
Dojo-***@mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest