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

Defines the fluent API for configuring WindowModalSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class WindowModalSettingsBuilder

Inheritance: objectWindowModalSettingsBuilder

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

Constructors

WindowModalSettingsBuilder method.

C#
public WindowModalSettingsBuilder(WindowModalSettings container)
Parameters:containerWindowModalSettings

Properties

Gets the settings being configured.

C#
protected WindowModalSettings Container { get; }

Methods

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

C#
public WindowModalSettingsBuilder PreventScroll()
Returns:

WindowModalSettingsBuilder

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

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

The value for PreventScroll

Returns:

WindowModalSettingsBuilder