RadAjaxManager Partial Postback Problem

4 posts, 0 answers
  1. Jacques
    Jacques avatar
    3 posts
    Member since:
    Nov 2011

    Posted 28 Apr 2012 Link to this post

    Hi Team Telerik,

    On my page, I have 2 user controls (uc1) and (uc2). Both of them are placed inside the panel. This first user control (uc1) is having RadTabStrip. If user clicks on that it’ll allow uc2 to perform action and gets visible then. But, I was getting the full post back, which I don’t want to perform actually. I want that it should have partial post back instead of full page post back.
    I have tried implementing this with "RadAjaxManager" to the page so that the entire user control (uc2) will get refreshed. But, when I click on the RadTabStrip which is been bounded programmatically in first user control (uc1), it throws a java script error message. Please refer following error message:
    “Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.3; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
    Timestamp: Sat, 28 Apr 2012 14:02:19 UTC
    Message: 'EditModeStylectl00_cphLeft_ReportPage1_Filter1_FilterSte...' is undefined
    Message: Object expected”

    I am using the following code in Page_Prerender() event.
             RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
            manager.AjaxSettings.AddAjaxSetting(radAjaxPanel, radAjaxPanel);
    I am not sure, what would be the exact reason behind it.
     It would be a really great if you could provide any help on this.

    Thanks,
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 May 2012 Link to this post

    Hello,

    In the provided RadAjaxManager setting I noticed that you are adding RadAjaxPanel to update itself. Note that it is not a supported scenario to have RadAjaxManager and RadAjaxPanel to update the same controls on the page or adding RadAjaxPanel controls into the RadAjaxManager settings. Please try to replace the RadAjaxPanel with regular asp Panel and verify of this makes any difference.

    Regards,
    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.
  3. Jacques
    Jacques avatar
    3 posts
    Member since:
    Nov 2011

    Posted 15 May 2012 Link to this post

    Hi Maria,

    Thanks for the reply. I have used regular asp panel instead of RadAjaxPanel, but it does a full postback. I want it should be implemented as partial postback. So, I am sorry to say that this change is not working in my case.

    Can you please suggest something else apart from this?

    Regards
    Jacques

  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 May 2012 Link to this post

    Hi,

    Note that in order the controls in the regular asp panel perform ajax requests instead of postback the asp panel should be added in the RadAjaxManager settings as updated control.  If this doesn't help it will be best if you send us your markup as well as the related code behind. Thus we will be able to revise the exact settings you have and do our best to isolate the root cause of the problem.

    Kind regards,
    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