DialogTagHelper

Example

Razor
<kendo-dialog>
    <actions></actions>
    <content></content>
    <dialog-title />
    <kendo-dialog-messages-settings />
    <modal />
    <popup-animation></popup-animation>
</kendo-dialog>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
heightStringSpecifies height of the dialog.
max-heightStringThe maximum height (in pixels) that may be achieved by resizing the dialog.
max-widthStringThe maximum width (in pixels) that may be achieved by resizing the dialog.
min-heightStringThe minimum height (in pixels) that may be achieved by resizing the dialog.
min-widthStringThe minimum width (in pixels) that may be achieved by resizing the dialog.
modalBooleanSpecifies whether the dialog should show a modal overlay over the page.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
button-layoutStringSpecifies the possible layout of the action buttons in the Dialog.Note: Stretched layout has no effect in browsers, like IE9, that do not support flexbox.Possible values are: normal or stretched.
closableBooleanSpecifies whether a close button should be rendered at the top corner of the dialog.
contentStringThe content of the dialog
on-closeStringThe name of the JavaScript function that will handle the close event. Triggered when a Dialog is closed (by a user or through the close() method).
on-hideStringThe name of the JavaScript function that will handle the hide event. Triggered when a Dialog has finished its closing animation.
on-init-openStringThe name of the JavaScript function that will handle the initOpen event. Triggered when a Dialog is opened for the first time (i.e. the open() method is called).
on-openStringThe name of the JavaScript function that will handle the open event. Triggered when a Dialog is opened (i.e. the open() method is called).
on-showStringThe name of the JavaScript function that will handle the show event. Triggered when a Dialog has finished its opening animation.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
sizeStringSet predefined size to the dialog. The width and height configuration options override the predefined size.Possible values are: auto; small; medium or large.
visibleBooleanSpecifies whether the dialog will be initially visible.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
theme-colorStringThe themeColor option controls the color that will be applied.The following values are available for the themeColor: primary; dark; light or none.
titleStringThe text in the dialog title bar. If false, the dialog will be displayed without a title bar.
widthStringSpecifies width of the dialog.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support