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

Defines the fluent API for configuring the WindowModalSettings settings.

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

C#
public WindowModalSettingsBuilder(WindowModalSettings settings)
Parameters:settingsWindowModalSettings

The WindowModalSettings

Methods

Specifies whether the document should stop scrolling when modal window is opened. 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 that configures the preventscroll.

Returns:

WindowModalSettingsBuilder