another question about Grid and Stores

View: New views
1 Messages — Rating Filter:   Alert me  

another question about Grid and Stores

by V S P :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using

Grid.setStore

to assign grid stores at runtime (because in many instances I first
created the grid,
and then with additional json rpc calls, I get attributes for stores
(like fetch links))

the problem I am having I think (briefly described in my previous
message)

is that


Grid.setStore (mystore)   calls fetch on the store automatically

and what is worse -- is that because there are no 'items' yet in the
grid
it calls fetch with no 'query' string !
so my store executes a fetch from my data server (I am using
dojox.data.ServiceStore)

without a query string.  


this is obviously a problem -- why call a fetch on a ServiceStore with
no query parameter?

So wanted to ask if there are any workarounds for this.


Thank you in advance,
Vlad

--
Vlad P
author of C++  ORM  http://github.com/vladp/CppOrm/tree/master


--
http://www.fastmail.fm - Same, same, but different...

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest