New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring DialogModalSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class DialogModalSettingsBuilder

Inheritance: objectDialogModalSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

DialogModalSettingsBuilder method.

C#
public DialogModalSettingsBuilder(DialogModalSettings container)
Parameters:containerDialogModalSettings

Properties

Gets the settings being configured.

C#
protected DialogModalSettings Container { get; }

Methods

Specifies whether the document should stop scrolling when modal dialog is opened. Closing it should restore the initial document overflow. Note that it's not supported to have multiple dialogs with different preventScroll setting.

C#
public DialogModalSettingsBuilder PreventScroll()
Returns:

DialogModalSettingsBuilder

Specifies whether the document should stop scrolling when modal dialog is opened. Closing it should restore the initial document overflow. Note that it's not supported to have multiple dialogs with different preventScroll setting.

C#
public DialogModalSettingsBuilder PreventScroll(bool value)
Parameters:valuebool

The value for PreventScroll

Returns:

DialogModalSettingsBuilder