Migrating from UpdatePanel to RadAjaxPanel

13 posts, 0 answers
  1. Kristoffer Ryden
    Kristoffer Ryden avatar
    8 posts
    Member since:
    May 2008

    Posted 05 Aug 2009 Link to this post


    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
  2. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 06 Aug 2009 Link to this post

    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.
  3. Kristoffer Ryden
    Kristoffer Ryden avatar
    8 posts
    Member since:
    May 2008

    Posted 06 Aug 2009 Link to this post

    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

  4. Kristoffer Ryden
    Kristoffer Ryden avatar
    8 posts
    Member since:
    May 2008

    Posted 06 Aug 2009 Link to this post


    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."
  5. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 07 Aug 2009 Link to this post

    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.
  6. Kristoffer Ryden
    Kristoffer Ryden avatar
    8 posts
    Member since:
    May 2008

    Posted 07 Aug 2009 Link to this post


    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
  7. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 11 Aug 2009 Link to this post

    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.
  8. Kristoffer Ryden
    Kristoffer Ryden avatar
    8 posts
    Member since:
    May 2008

    Posted 17 Aug 2009 Link to this post


    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  

  9. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 20 Aug 2009 Link to this post

    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.
  10. Rohan
    Rohan avatar
    16 posts
    Member since:
    Feb 2012

    Posted 28 Feb 2012 Link to this post

    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 ,
  11. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Mar 2012 Link to this post

    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.
  12. Dorababu
    Dorababu avatar
    95 posts
    Member since:
    May 2012

    Posted 29 Jun 2012 Link to this post

    Is it possible to show the RadAjaxPanel in a popup window
  13. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 03 Jul 2012 Link to this post

    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.
Back to Top