Do you need to know if upshot is completelly instantiated? Or do you need an event if the data is retrieved from the server? With the last one I can help you.
You can either add a complete handler to the refresh of your remote datasource:
upshot.dataSources.GetTodoItems.refresh({}, function () {
// OnCompleteCallback
});
Or the otherway is bind to the "commitSuccess" event on the remote datasource
thaicarrot
Contributor
5132 Points
1465 Posts
How do I add complete event to UpShot?
Apr 12, 2012 09:15 AM|LINK
Hell.
When work on jQuery UI Widget, UpShot to late.
Weera
KDegrave
Member
96 Points
25 Posts
Re: How do I add complete event to UpShot?
Apr 13, 2012 05:54 AM|LINK
What is it what you are trying to do?
Do you need to know if upshot is completelly instantiated? Or do you need an event if the data is retrieved from the server? With the last one I can help you.
You can either add a complete handler to the refresh of your remote datasource:
upshot.dataSources.GetTodoItems.refresh({}, function () { // OnCompleteCallback });Or the otherway is bind to the "commitSuccess" event on the remote datasource
greetings Kristof
Ria4HTML: http://ria4htmldemo.codeplex.com
Linq2IndexedDB: http://linq2indexeddb.codeplex.com
thaicarrot
Contributor
5132 Points
1465 Posts
Re: How do I add complete event to UpShot?
Apr 13, 2012 09:36 AM|LINK
Thanks, Is there has pre load event? So that I can place some indicator to tell the user it is loading.
Weera
KDegrave
Member
96 Points
25 Posts
Re: How do I add complete event to UpShot?
Apr 13, 2012 09:46 AM|LINK
I don't think so...
There is a "commitStart" event, but this is triggerd when a commitchanges method is called. So I'm not sure it's triggered for every request you make.
greetings
Kristof
Ria4HTML: http://ria4htmldemo.codeplex.com
Linq2IndexedDB: http://linq2indexeddb.codeplex.com