PDA

View Full Version : [CLOSED] Check if there are any pending DirectMethods or DirectEvents



jchau
Jun 09, 2014, 5:37 PM
Is there a global way to check if there are any pending DirectMethods or DirectEvents? Ext.Ajax.isLoading doesn't seem to apply to DirectEvents

Daniil
Jun 10, 2014, 5:48 AM
Hi @jchau,

Ext.net.DirectEvent inherits Ext.data.Connection. So, I think you can use its isLoading method.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.Connection-method-isLoading

Ext.net.DirectEvent.isLoading();

Daniil
Oct 10, 2014, 9:50 AM
Here is a related thread with an alternative suggestion.
http://forums.ext.net/showthread.php?27636