I allow the user to create in runtime, zones (my sections) and docks.
<asp:Repeater ID="repSections" runat="server" OnItemDataBound="repSections_ItemDataBound">
<ItemTemplate>
<asp:Panel ID="panelSection" runat="server" CssClass="container">
A RadDockZone(section) and it's RadDocks are injected here in runtime...
</asp:Panel>
</ItemTemplate>
</asp:Repeater>
This repeater is populated from database and zones and it's docks injected in runtime, assigning the DockPositionChanged event to each of the created docks. Since I also inject in runtime, controls before and after each zone to manage it (Add, configure, move up/down) and I want them to postback using ajax, I'm configuring the ajax behavior in the ItemDataBound event of the Repeater:
protected void repSections_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
LinkButton linkbtAddNormalSection = e.Item.FindControl("linkbtAddNormalSection") as LinkButton;
linkbtAddNormalSection.CommandArgument = section.Id.ToString();
AjaxSetting ajaxSetting_linkbtAddNormalSection = new AjaxSetting();
ajaxSetting_linkbtAddNormalSection.AjaxControlID = linkbtAddNormalSection.UniqueID;
ajaxSetting_linkbtAddNormalSection.EventName = "Click";
ajaxSetting_linkbtAddNormalSection.UpdatedControls.AddRange(new AjaxUpdatedControlsCollection()
{
new AjaxUpdatedControl(repSections.UniqueID,""),
new AjaxUpdatedControl(panelNosections.UniqueID,""),
new AjaxUpdatedControl(radNotification.UniqueID, "")
});
ajaxManagerProxy.AjaxSettings.Add(ajaxSetting_linkbtAddNormalSection);
...
}
Because of this, RadAjax places a RadAjaxPanel that includes all the created zones inside of the repeater causing the DockPositionChanged event to function in ajax mode. That's fine, and works great since avoids a regular postback each time a dock changes position.
The issue is that I need to show a RadNotification that is outside the repeater and consequently, outside that RadAjaxPanel and I can't show it from the DockPositionChanged event.
Any suggestion to overcome this?
Thank you!
Ignore the previous issue. The RadNotification is shown. The issue is that I have a usercontrol inside the ContentTemplate and it's properties set in runtime are not rendering. Tried placing the usercontrol directly inside the <ContentTemplate> tag and injecting it in runtime using LoadControl and setting the UC properties but the issue persists in both cases. The UC html appears but with no content from the properties. It's like the server controls of the UC inside ContentTemplate are not getting updated with the values passed in runtime. Any ideas?