In case you need to disable ajax, you should do it on the client, before the request is sent to the server. So you should perform your checks and set the desired flags client-side.
If you disable ajax on the server, on Download button click, the next request will be performed as postback but this that already started will finish as regular callback.
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed