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

Update Panel issue when adding RadDock

1 Answer 49 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 12 Oct 2009, 03:59 PM

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

1 Answer, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 14 Oct 2009, 01:40 PM
You cannot set IDs, to ASP.NET (AJAX) controls, that start with a numeric character.

Try the following and you will see that an error will be thrown.
<asp:Button ID="1A" runat="server" Text="Button" /> 
 
Tags
Dock
Asked by
Brian
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Share this question
or