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.
"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.