I receive the following error in the CreateSaveStateTrigger method when adding a RadDock dynamically to a RadDockZone
{"A control with ID '39f41c90af750a469baaf9eacef10f1b6c83__53' could not be found for the trigger in UpdatePanel 'UpdatePanel1'."}
'39f41c90af750a469baaf9eacef10f1b6c83__53' is the id of the RadDock I am attempting to add.
Here is my code for CreateSaveStateTrigger:
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);
}
Any help would be appreciated.
Thanks,
Brian