Edit this page

Dialog JSP Tag Overview

The Dialog JSP tag is a server-side wrapper for the Kendo UI Dialog widget.

Getting Started


Below are listed the steps for you to follow when configuring the Kendo UI Dialog.

Step 1 Make sure you followed all the steps from the introductory article on Telerik UI for JSP.

Step 2 Create a new action method which renders the view.

    @RequestMapping(value = {"index"}, method = RequestMethod.GET)
    public String index() {

        return "web/dialog/index";

Step 3 Add the Kendo UI taglib mapping to the page.

    <%@taglib prefix="kendo" uri="http://www.kendoui.com/jsp/tags"%>

Step 4 Add the dialog tag.

<kendo:dialog name="dialog" title="Software Update" closable="false" modal="false"
            content="Do you agree terms and conditions?">
        <kendo:dialog-action text="NO" />
        <kendo:dialog-action text="YES" primary="true" />

Event Handling

Subscribe to Events

You can subscribe to all events exposed by Kendo UI Dialog by the handler name.

<kendo:dialog name="dialog"  open="dialog_open" close="dialog_close">

    function dialog_open() {
        // Handle the open event

    function dialog_close() {
        // Handle the close event


Existing Instances

To refer to an existing Dialog instance, use jQuery.data(). Once a reference is established, you are able to use the Dialog API to control its behavior.

// Put this after your Kendo Dialog tag declaration
$(function() {
    // Notice that the Name() of the dialog is used to get its client-side instance
    var dialogObject = $("#dialog").data("kendoDialog");

See Also

Other articles on Telerik UI for JSP and on the Dialog:

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article