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

radnotification with show method

1 Answer 115 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 19 Aug 2012, 02:29 PM
Instead of using visibleonpageload i used show method to display notification.But it reappears after postback.Is there any work around for this?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Aug 2012, 04:24 AM
Hi Tina,

Here is the sample code that I tried to open Notification on a button click event. Try placing the Button inside an RadAjaxPanel or UpdatePanel as shown below.
aspx:
<telerik:RadNotification ID="RadNotification1" runat="server" EnableRoundedCorners="true" EnableShadow="true" Text="Sample" Title="Sample " Width="300" Height="100">
</telerik:RadNotification>
<telerik:RadAjaxPanel ID="RadAjaxpanel1" runat="server">
  <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" />
</telerik:RadAjaxPanel>
C#:
protected void Button1_Click(object sender, EventArgs e)
 {
   RadNotification1.Show();
 }

Thanks,
Princy.
Tags
Notification
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or