Nov 28, 2012, 12:05 PM
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
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?
I have searched trough the web and found many solutions, no one works.
I've tried setting globals
<script type="text/javascript">
Ext.Ajax.timeout = 1000;
Ext.net.DirectEvent.timeout = 1000;
</script>
And inside the 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?
Last edited by glhrmbhnrt; Nov 28, 2012 at 3:06 PM.
Reason: Aditional info 2