how do I notify dojox.grid.DataGrid that data has changed in the store / on the server ?
I’m using dojox.data.QueryReadStore with DataGrid.
For example I want DataGrid to reload from server one row that I know has changed.
Thanks for help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on IF you are caching or not the answer will be different.
Most probably you’ll end up doing something like a fetch with query : “?id=” + yourId + “&time=” + new Date().getTime()
Reason being an Item cached is pretty much cached for the store’s lifespan.
The only way to force reload on the server is to use a different query (at least it’s the case for the JsonRestStore). Maybe QueryReadStore is more clever and can systematically reload from server when using some functions.
Good old date trick to force reload 🙂