Hi everyone,
I'm having an issue trying to add rich content to a RadNotification created dynamically. I'm developing ASP.NET Composite Server Controls that nests Telerik controls and it is imposible to add any control to the RadNotification's ContentTemplate/ContentContainer. This is my code:
BTW, this is not the full method, full method contains a lot of more controls, this is just a sample.
Hope anyone knows how can I achieve it.
Thanks,
Nefi
I'm having an issue trying to add rich content to a RadNotification created dynamically. I'm developing ASP.NET Composite Server Controls that nests Telerik controls and it is imposible to add any control to the RadNotification's ContentTemplate/ContentContainer. This is my code:
protected override void CreateChildControls(){ var _notification = new RadNotification { ID = "Notification", Position = NotificationPosition.Center, Height = Unit.Pixel(160), Width = Unit.Pixel(330), TitleIcon = "ok", Animation = NotificationAnimation.Slide, AutoCloseDelay = 0, ShowCloseButton = false, }; var div = new HtmlGenericControl("div"); div.Controls.Add(new LiteralControl("<br />")); div.Controls.Add(new Literal { Text = Resources.MyControl_TextMessage }); div.Controls.Add(new LiteralControl("<br />")); div.Controls.Add(new RadButton { Text = Resources.MyControl_ButonText }); _notification .ContentContainer.Controls.Add(div); this.Controls.Add(_notification);}BTW, this is not the full method, full method contains a lot of more controls, this is just a sample.
Hope anyone knows how can I achieve it.
Thanks,
Nefi