How to get rid of update panel / triggers in "My Portal"

3 posts, 1 answers
  1. apb
    apb avatar
    46 posts
    Member since:
    Nov 2008

    Posted 18 Jun 2009 Link to this post

    From the Telerik Ajax documentation:

    "There are some known issues when using both the manager and the panel in some complex applications - MasterPage or WebUserControls. However, note that a single RadAjaxManager (and no panels) in the master/main page could handle all the scenarios."

    In the "My Portal" example there is a standard asp update panel being used (with triggers). 

    In aspx:
                <asp:UpdatePanel runat="server" ID="UpdatePanel1">

    In code-behind:

            private void CreateSaveStateTrigger(RadDock dock)
                //Ensure that the RadDock control will initiate postback
                // when its position changes on the client or any of the commands is clicked.
                //Using the trigger we will "ajaxify" that postback.
                dock.AutoPostBack = true;
                dock.CommandsAutoPostBack = true;

                AsyncPostBackTrigger saveStateTrigger = new AsyncPostBackTrigger();
                saveStateTrigger.ControlID = dock.ID;
                saveStateTrigger.EventName = "DockPositionChanged";

                saveStateTrigger = new AsyncPostBackTrigger();
                saveStateTrigger.ControlID = dock.ID;
                saveStateTrigger.EventName = "Command";

    We are using a similar approach to this example in our code and I'm trying to switch to just using a Telerik Ajax Manager on master page and proxies as needed on regular pages/controls.

    What would the changes to the above example be to get rid of the update panels / triggers?

  2. Answer
    Petko avatar
    45 posts

    Posted 22 Jun 2009 Link to this post

    Hello apb,

    I have just answered your support ticket on the same subject. For convenience I am attaching the project here as well.

    Best wishes,
    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. apb
    apb avatar
    46 posts
    Member since:
    Nov 2008

    Posted 23 Jun 2009 Link to this post

    Thanks. That worked.
Back to Top