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

Open RadNotification on button

1 Answer 328 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Herman
Top achievements
Rank 1
Herman asked on 06 Jul 2011, 10:16 AM
How can i open the RadNotification1 on a button click ?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 06 Jul 2011, 10:49 AM
Hi Herman,

You can see the different ways a RadNotification can be shown in the following online demo: http://demos.telerik.com/aspnet-ajax-beta/notification/examples/show/defaultcs.aspx.

The simplest is by using its Client-Side API and more specifically the show() method:

<telerik:RadNotification runat="server" ID="RadNotification1" Title="Title" Text="Notification text" ShowCloseButton="true" Width="250px" Height="100px"
                        TitleIcon="info" ContentIcon="info" Position="Center" EnableRoundedCorners="true" EnableShadow="true" >
</telerik:RadNotification>
 
<asp:Button ID="Button1" Text="show notification" runat="server" OnClientClick="showNotification(); return false;" />

function showNotification()
{
    $find("<%=RadNotification1.ClientID %>").show();
}

sdf

Regards,
Marin
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Notification
Asked by
Herman
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or