RadAjax for ASP.NET

Frequently Asked Questions Send comments on this topic.
How-to > Frequently Asked Questions

Glossary Item Box

  1. Q: I have a button and a control (RadTreeview for example). The button should update the control with AJAX. How should I proceed?
    A: You should use the AJAX manager. In the left pane select the button and in the middle pane select the treeview.

  2. Q: My control is within an AJAX Panel and I want to update a control in another AJAX Panel. Is this possible?
    A: Instead of using two AJAX Panels, consider using a single AJAX Manager
        However if you still want to use the two panels, you should make external call from the AJAX-initiator control to the AjaxRequest client-side function of the target AJAX Panel. (see AJAX Panel topic)

  3. Q: I need to load an user control dynamically with AJAX. Is this possible? 
    A: The only difference between the standard loading of controls and AJAX loading is that you should put control in an ASP panel instead of a Placeholder.

  4. Q: I have two controls that interact and update each other. How should I ajaxify them?
    A: Depending on your application you can use a single Panel to wrap the two controls or AJAX Manager in case the controls are non-adjacent.

  5. Q: Can I use AJAX Panel in another AJAX Panel (i.e. nested AJAX Panels)?
    A: There should be no problem to use nested AJAX Panels. However we recommend you to revise the page logic and see if you can achieve the same behavior with AJAX Manager or two AJAX Panels which are not nested.

  6. Q: I have a client-side code, which is executed on some of the events of a control inside AJAX Panel. How should I proceed?
    A: There is nothing special that you need to do in this case - AJAX Panel automatically evaluates the client-side code and does not require you to write additional code.

  7. Q: I have a control A, which updates control B, which then updates control C. The control C then updates control A again. Controls are dependent on each other and should be updated sequentially. What would you suggest?
    A: The answer depends on how the controls are placed on the Page. In case they are neighboring, place them in AJAX Panel. In case they are non-adjacent, use AJAX Manager and set the AJAX Relations.

  8. Q: I need my controls disabled during AJAX. What should I do?  
    A: You should hook the Panel/Manager client-side event OnRequestStart and write custom JavaScript code to achieve your goal. Then you should re-enable it by hooking the OnResponseEnd client-side event.

  9. Q: Why is my RadAjaxTimer performing POSTBACKS instead of AJAX requests?
    A: You need to ajaxify RadAjaxTimer with RadAjaxManager or place it inside a RadAjaxPanel.