Open RadNotification on button

2 posts, 0 answers
  1. Herman
    Herman avatar
    28 posts
    Member since:
    Jun 2011

    Posted 06 Jul 2011 Link to this post

    How can i open the RadNotification1 on a button click ?
  2. Marin Bratanov
    Marin Bratanov avatar
    4439 posts

    Posted 06 Jul 2011 Link to this post

    Hi Herman,

    You can see the different ways a RadNotification can be shown in the following online demo:

    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" >
    <asp:Button ID="Button1" Text="show notification" runat="server" OnClientClick="showNotification(); return false;" />

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


    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!

Back to Top