does anybody know how can I find out if dgrid has finished loading data from the store?
I’ve been trying to find a way to do this in dgrid’s OnDemandList.js but unfortunately it’s above my current knowledge of dojo.
Thanks
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.
I came up with this solution some time ago, for
dgrid v0.3.0, but looking at sources it seems nothing changed so far, so I will try to adapt my solution for v0.3.3.See it in action: http://jsfiddle.net/phusick/FkANy/
The problem is that
dgrid/_StoreMixin::_trackErrordoes not define success callback when returningDeferred::when, therefore you need to override that method, define success callback and fire refresh event there._RefreshMixinmodule:Declare your own grid class and instantiate it:
Now you can listen to refresh event: