Inheritance
System.Object
Dialog
Assembly: Syncfusion.EJ2.dll
public class Dialog : EJTagHelper
Constructors
Declaration
Properties
Specifies the value whether the dialog component can be dragged by the end-user.
The dialog allows to drag by selecting the header and dragging it for re-position the dialog.
Declaration
public bool AllowDragging { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Specifies the animation settings of the dialog component.
The animation effect can be applied on open and close the dialog with duration and delay.
Declaration
public DialogAnimationSettings AnimationSettings { get; set; }
Property Value
Event triggers before the dialog is closed.
If you cancel this event, the dialog remains opened.
Set the cancel argument to true to cancel the closure of a dialog.
Declaration
public string BeforeClose { get; set; }
Property Value
Type |
Description |
System.String |
|
Event triggers when the dialog is being opened.
If you cancel this event, the dialog remains closed.
Set the cancel argument to true to cancel the open of a dialog.
Declaration
public string BeforeOpen { get; set; }
Property Value
Type |
Description |
System.String |
|
Event triggers before sanitize the value.
Declaration
public string BeforeSanitizeHtml { get; set; }
Property Value
Type |
Description |
System.String |
|
Configures the action buttons
that contains button properties with primary attributes and click events.
One or more action buttons can be configured to the dialog.
Declaration
public List<DialogDialogButton> Buttons { get; set; }
Property Value
Declaration
protected override string ClassName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Event triggers after the dialog has been closed.
Declaration
public string Close { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies the boolean value whether the dialog can be closed with the escape key
that is used to control the dialog's closing behavior.
Declaration
public bool CloseOnEscape { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Specifies the value that can be displayed in dialog's content area.
It can be information, list, or other HTML elements.
The content of dialog can be loaded with dynamic data such as database, AJAX content, and more.
Declaration
public string Content { get; set; }
Property Value
Type |
Description |
System.String |
|
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Event triggers when the dialog is created.
Declaration
public string Created { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies the CSS class name that can be appended with root element of the dialog.
One or more custom CSS classes can be added to a dialog.
Declaration
public string CssClass { get; set; }
Property Value
Type |
Description |
System.String |
|
Event triggers when the dialog is destroyed.
Declaration
public string Destroyed { get; set; }
Property Value
Type |
Description |
System.String |
|
Event triggers when the user drags the dialog.
Declaration
public string Drag { get; set; }
Property Value
Type |
Description |
System.String |
|
Event triggers when the user begins dragging the dialog.
Declaration
public string DragStart { get; set; }
Property Value
Type |
Description |
System.String |
|
Event triggers when the user stop dragging the dialog.
Declaration
public string DragStop { get; set; }
Property Value
Type |
Description |
System.String |
|
Defines whether to allow the cross-scripting site or not.
Declaration
public bool EnableHtmlSanitizer { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Enable or disable persisting component's state between page reloads.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Specifies the value whether the dialog component can be resized by the end-user.
If enableResize is true, the dialog component creates grip to resize it diagonal direction.
Declaration
public bool EnableResize { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Specifies the template value that can be displayed with dialog's footer area.
This is optional property and can be used only when the footer is occupied with information or custom components.
By default, the footer is configured with action buttons.
If footer template is configured to dialog, the action buttons property will be disabled.
Declaration
public string FooterTemplate { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies the value that can be displayed in the dialog's title area that can be configured with plain text or HTML elements.
This is optional property and the dialog can be displayed without header, if the header property is null.
Declaration
public string Header { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies the height of the dialog component.
Declaration
public string Height { get; set; }
Property Value
Type |
Description |
System.String |
|
Allows additional HTML attributes such as title, name, etc., and
accepts n number of attributes in a key-value pair format.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type |
Description |
System.Object |
|
Declaration
protected override bool IsFor { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Specifies the Boolean value whether the dialog can be displayed as modal or non-modal.
Modal
: It creates overlay that disable interaction with the parent application and user should
respond with modal before continuing with other applications.
Modeless
: It does not prevent user interaction with parent application.
Declaration
public bool IsModal { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type |
Description |
System.String |
|
Specify the min-height of the dialog component.
Declaration
public string MinHeight { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
protected override string NameSpace { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Event triggers when a dialog is opened.
Declaration
public string Open { get; set; }
Property Value
Type |
Description |
System.String |
|
Event triggers when the overlay of dialog is clicked.
Declaration
public string OverlayClick { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies the value where the dialog can be positioned within the document or target.
The position can be represented with pre-configured positions or specific X and Y values.
X value
: left, center, right, or offset value.
Y value
: top, center, bottom, or offset value.
Declaration
public DialogPositionData Position { get; set; }
Property Value
ResizeHandles
Specifies the resize handles direction in the dialog component that can be resized by the end-user.
Declaration
public object ResizeHandles { get; set; }
Property Value
Type |
Description |
System.Object |
|
Event triggers when the user begins to resize a dialog.
Declaration
public string ResizeStart { get; set; }
Property Value
Type |
Description |
System.String |
|
Event triggers when the user stop to resize a dialog.
Declaration
public string ResizeStop { get; set; }
Property Value
Type |
Description |
System.String |
|
Event triggers when the user resize the dialog.
Declaration
public string Resizing { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies the value that represents whether the close icon is shown in the dialog component.
Declaration
public bool ShowCloseIcon { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
protected override string TagName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Specifies the target element in which to display the dialog.
The default value is null, which refers the document.body
element.
Declaration
public string Target { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies the value that represents whether the dialog component is visible.
Declaration
public bool Visible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Specifies the width of the dialog.
Declaration
public string Width { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies the z-order for rendering that determines whether the dialog is displayed in front or behind of another component.
Declaration
public double ZIndex { get; set; }
Property Value
Type |
Description |
System.Double |
|