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

[Solved] Trying to emulate an updatepanel with triggers

1 Answer 121 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 01 Jun 2009, 11:24 PM
Hi

I have not used rad ajax before and I am just trying to learn how it works. I am trying to emulate a common scenario whereby you have a user form outside an update panel and this has a submit button which, when clicked, updates the display which are  some sort of results inside an update panel. The submit button is an asych postback trigger for the updatepanel.

I wasn't sure how to achieve this set up using rad ajax. My first thought was the rad panel but this wasn't really suitable because the rad panel is triggered by controls inside the panel which meant I had to have had my submit button inside the panel and this didnt look good when i incorporate a loading panel as the loading image is displayed over the button as well as the results section.

The way I choose to implement it was to have a rad manager and then enclose all of the controls that comprise my results form within an asp.net panel. I then set the submit button to update the asp.net panel in the ajax manager. When the button is clicked, the results form inside the panel is updated and the loading image is only shown on top of the results section and not the submit button

This seems to work but is this the correct way? I guess I am confused because I thought i would use the rad panel but i didn't. Most of my web pages have this same organisation section set up so I want to get the rad ajax side of things right before I apply it to all my other pages.


thanks in advance

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 04 Jun 2009, 12:06 PM
Hello andieje,

Indeed, your solution is correct and should work as expected. The RadAjaxManager control gives you greater flexibility as to the position where the loading panel is displayed. You can achieve this with the RadAjaxPanel but this requires some javascript coding which is more time-consuming.

For further information on RAdAjaxManager and RadAjaxPanel, you can refer to the below articles;
http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html
http://www.telerik.com/help/aspnet-ajax/ajxajaxpanel.html

I hope this information helps.

Best Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
andieje
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or