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

Migrating from UpdatePanel to RadAjaxPanel

12 Answers 556 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Kristoffer Ryden
Top achievements
Rank 1
Kristoffer Ryden asked on 05 Aug 2009, 10:12 PM

I have a server control which shows/hides a few radcombobox controls based on previous selections (within the same control).  These controls are placed inside an UpdatePanel (panel created OnInit, controls added OnLoad) to minimize full page refreshes and this all works great.

We're consolidating on RadAjax and I figured it would be a simple migration to RadAjaxPanel but when I switch in the RadAjaxPanel I'm getting full page refreshes, not just on the first select (as described in other threads) but on all control interactions.

I have set EnableAJAX to true and I have also hooked the AjaxSettingCreating event to get the default behaviour of UpdatePanel (i.e. UpdateMode = always and ChildrenAsTriggers = true).

Are there some other settings I need to make to get parity with the UpdatePanel?

Many Thanks,

Brian

12 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 06 Aug 2009, 03:05 PM
Hello Kristoffer,

From your mentioning of AjaxSettingCreating event I assume that you have both RadAjaxManager and RadAjaxPanel on your page which is not recommended.
As far I can understand your scenario, I suggest that you use the RadAjaxManager only, because the whole RadAjaxPanel is updated when one of the controls placed in it makes an AJAX request.
I would also like to recommend that you read the help topics on
RadAjaxManager and RadAjaxPanel.

Please contact us if you need any further assistance and provide more information on your scenario and some code snippets if possible.

Regards,
Mira
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.
0
Kristoffer Ryden
Top achievements
Rank 1
answered on 06 Aug 2009, 04:07 PM

AjaxSettingCreating is an event on RadAjaxPanel (the base class RadAjaxControl) and from documentation it looks like those events can be hooked to interact with the underlying UpdatePanel.

I am not using RadAjaxManager for two reasons, one is that it seems more suited to the panel and two I had hoped for a fairly simple migration from UpdatePanel.

 

RE: documentation.  I have been reading quite extensively on RadAjaxPanel and RadAjaxManager and to be honest I have yet to find a really in-depth article that goes "under-the-hood" on the Telerik Ajax suite.

Would be great if you could address the original question on parity of the UpdatePanel and RadAjaxPanel.

 

Thanks,

 

Brian

0
Kristoffer Ryden
Top achievements
Rank 1
answered on 06 Aug 2009, 07:41 PM

I'll just correct this sentence in case it causes any further confusion:

"I am not using RadAjaxManager for two reasons, one is that my scenario seems more suited to the panel and two, I had hoped for a fairly simple migration from UpdatePanel."
0
Mira
Telerik team
answered on 07 Aug 2009, 09:25 AM
Hi Kristoffer,

I assume that there should not be any problems if you just wrap the controls you want to be updated in a RadAjaxPanel and the whole panel will be updated if when one of the controls makes an AJAX request. This is the behavior of RadAjaxPanel. If you want only the control which made the AJAX request to be updated, I recommend that you put each control in a separate RadAjaxPanel.

Greetings,
Mira
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.
0
Kristoffer Ryden
Top achievements
Rank 1
answered on 07 Aug 2009, 02:00 PM

I apologize because I'm really not making myself clear, here is the problem:

For the past six months I have a group of controls that are wrapped in an ASP.NET UpdatePanel. Everything works the way it should and I get partial page refreshes.  I have replaced the UpdatePanel control with a RadAjaxPanel and now I get full postbacks from any controls in the panel. 

My question is this: Why would RadAjaxPanel not be a direct replacement for UpdatePanel and are there any known issues with the parity between the two.

Many Thanks,

Brian
0
Mira
Telerik team
answered on 11 Aug 2009, 04:23 PM
Hello Kristoffer,

I attach a sample project showing the functionality of the RadAjaxPanel. The grid is wrapped inside an RadAjaxPanel and causes only partial updates of the page. Outside the RadAjaxPanel there is a button which causes full postback.

Please inform me whether this is the behavior you get from asp:UpdatePanel and you want from RadAjaxPanel.

Greetings,
Mira
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.
0
Kristoffer Ryden
Top achievements
Rank 1
answered on 17 Aug 2009, 09:48 PM

Forgive me once again but the sample you provided does not reflect the scenario I am describing (I have no problem getting the controls to work in a declarative scenario).

If you could supply a sample of an ASP.NET server control with multiple radcomboboxes which get shown or hidden based on the selection of previous combobox (or any server control scenario of your choosing) that would be most useful.

The control is derived from System.Web.UI.WebControls.WebControl and it overrides OnInit (to initialise), OnLoad (to process the show/hide logic) and RenderControl.

As I have said, we currently have these child controls contained in an UpdatePanel which currently works well.

Many Thanks,

Brian  

0
Mira
Telerik team
answered on 20 Aug 2009, 09:25 AM
Hello Kristoffer,

I have attached a sample project in which there are 2 RadComboBoxes in a RadAjaxPanel and you select from the first whether to show/hide the second. Show/hide is performed using partial postback (only the controls inside the RadAjaxPanel are updated). On the same page there is a button outside the panel which causes full postback.

I hope this example will show you how RadAjaxPanel works.

All the best,
Mira
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.
0
Rohan
Top achievements
Rank 1
answered on 28 Feb 2012, 12:00 PM
Hi Mira,

I want to conditional update on the page such as ajax update panel is used for different purpose ......
how can i achieve the same functionality with AJAXRadPanel ,
0
Maria Ilieva
Telerik team
answered on 01 Mar 2012, 05:08 PM
Hello Rohan,

If by conditional update you mean adding triggers for initiating ajaxRequest form different controls , best option for you would be to use RadAjaxManager instead of RadAjaxPanel control.
More information on this matter could be found here:
http://www.telerik.com/help/aspnet-ajax/ajax-ajaxmanager.html



All the best,
Maria Ilieva
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 now.
0
Dorababu
Top achievements
Rank 1
answered on 29 Jun 2012, 08:23 AM
Is it possible to show the RadAjaxPanel in a popup window
0
Maria Ilieva
Telerik team
answered on 03 Jul 2012, 02:11 PM
Hi Dorababu,

Please elaborate a bit more on what you mean by adding RadAjaxPanel in popup Window. Providing some more information on your scenario will help us provide proper solution to implement.

Greetings,
Maria Ilieva
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 now.
Tags
Ajax
Asked by
Kristoffer Ryden
Top achievements
Rank 1
Answers by
Mira
Telerik team
Kristoffer Ryden
Top achievements
Rank 1
Rohan
Top achievements
Rank 1
Maria Ilieva
Telerik team
Dorababu
Top achievements
Rank 1
Share this question
or