This is a migrated thread and some comments may be shown as answers.

Disabling Ajax for one RadToolBarButton

2 Answers 97 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 19 Mar 2009, 07:36 PM
I've got a RadToolBar inside a RadToolTip (a user control loaded dynamically) which is displayed from a RadGrid (talk about vertical integration!). I want one of the buttons in the toolbar to initiate a file download. Because you can't do a Response.TransmitFile inside an UpdatePanel I need to disable Ajax for this operation but only this one button.

So far the only thing that works (although it obviously won't work for anything else) is to register the entire toolbar as a postback control with the ScriptManager. I'm guessing that the solution is a client event in RadAjaxManager but I've only been using these tools for a couple of weeks so I'm not certain what to do and where. I appreciate any help! :)

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Mar 2009, 10:12 AM
Hi Neil,

I found one KB article " How to disable AJAX for specific Items of an AJAX-ified Navigational control"
explaining how to disable Ajax for specific toolbarbutton .

-shinu

0
Neil
Top achievements
Rank 1
answered on 20 Mar 2009, 12:15 PM
Thank you! I looked around the forums and thought I searched the KB thoroughly but I guess I missed that one. I did get it to work except I found that eventArgs.EventTarget in the onRequestStart has to be the full ClientID and not just the ID. But since that is unlikely to change in my situation I'm good. I appreciate the help.

Neil
Tags
ToolBar
Asked by
Neil
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Neil
Top achievements
Rank 1
Share this question
or