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

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

2 Answers 80 Views
Dock
This is a migrated thread and some comments may be shown as answers.
apb
Top achievements
Rank 1
apb asked on 18 Jun 2009, 01:38 PM
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">
            </asp:UpdatePanel>


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";
            UpdatePanel1.Triggers.Add(saveStateTrigger);

            saveStateTrigger = new AsyncPostBackTrigger();
            saveStateTrigger.ControlID = dock.ID;
            saveStateTrigger.EventName = "Command";
            UpdatePanel1.Triggers.Add(saveStateTrigger);
        }


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?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Petko
Telerik team
answered on 22 Jun 2009, 01:36 PM
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,
Petko
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
apb
Top achievements
Rank 1
answered on 23 Jun 2009, 12:54 PM
Thanks. That worked.
Tags
Dock
Asked by
apb
Top achievements
Rank 1
Answers by
Petko
Telerik team
apb
Top achievements
Rank 1
Share this question
or