when I set this property in the ajax manager within the masterpage will it
disable ajax on all requests? I only want to disable ajax, when the uploda
button (which resides in the content page) is clicked.
Best regards,
Robert
0
Veselin Vasilev
Telerik team
answered on 20 Oct 2008, 12:51 PM
Hi Robert,
Here is what you can do:
In the content page declare a global javascript variable:
var canUpload = false;
Subscribe to the OnClientClick event of the button - it fires before the postback. In that event set the canUpload variable to true. Now, on the onRequestStart event handler stop the ajax if the canUpload variable is true.
I hope this helps.
Best wishes,
Veselin Vasilev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.