[starting from version: 2.3]
It is triggered after the data query was complete. To track any errors use queryerror.
queryerror
pivot.on('querycomplete', function () { alert('Query is complete!');});
Try on JSFiddle.
runningqueryqueryerror
In this guide