New to Kendo UI for jQuery? Download free 30-day trial

Getting Started with the Notification

This guide demonstrates how to get up and running with the Kendo UI for jQuery Notification.

After the completion of this guide, you will be able to achieve the following end result:

    <span id="notification"></span>
    <script>
      $("#notification").kendoNotification({
        allowHideAfter: 1000,
        width: 300,
        position: {
          pinned: true,
          top: null,
          left: null,
          bottom: 200,
          right: 200
        }
      });

      $("#notification").getKendoNotification().show("Some additional information message", "info");
    </script>

1. Create a span Element

First, create a <span> element on the page that will be used to initialize the component.

<span id="notification"></span>

2. Initialize the Notification

In this step, you will initialize the Notification from the <span> element.

<span id="notification"></span>

<script>
    // Target the span element by using jQuery and then call the kendoNotification() method.
    $("#notification").kendoNotification({
        // Add some basic configuration such as width.
            allowHideAfter: 1000,
        width: 300,
    });
</script>

3. Display the Notification

To render the Notification, use the show or showText methods.

    <span id="notification"></span>
    <script>
      $("#notification").kendoNotification({
        ....
      });

      $("#notification").getKendoNotification().show("Some additional information message", "info");
    </script>

4. Configure the Position

You can customize the position of the displayed component and whether the notifications will move together with the page content during scrolling.

    <span id="notification"></span>
    <script>
      $("#notification").kendoNotification({       
        allowHideAfter: 1000,
        width: 300,
        position: {
          pinned: true,
          top: null,
          left: null,
          bottom: 200,
          right: 200
        }
      });

      $("#notification").getKendoNotification().show("Some additional information message", "info");
    </script>

Next Steps

See Also

In this article