Problem setting DirectMethod/Event Timeout
Hello guys, i got a problem using Ext Timeout.
I have searched trough the web and found many solutions, no one works.
I've tried setting globals
Code:
<script type="text/javascript">
Ext.Ajax.timeout = 1000;
Ext.net.DirectEvent.timeout = 1000;
</script>
And inside the code.
Code:
public event Func<bool> OnSave;
[DirectMethod(Timeout = 1000)]
public bool Save()
{
System.Threading.Thread.Sleep(5000);
if (this.OnSave != null)
return this.OnSave();
return false;
}
No one works :(
Edit: Also setting higher values, the default keeps at 30000 (30 secds).
While debuggin the javascript, it's set to 1000 (1 sec);
But don't work.
Edit2: I forgot to say, while it don't work, after 30 seconds i get a message saying " -1 Transaction aborted".
Any solution?