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

DialogModalSettingsBuilder

Methods

PreventScroll(System.Boolean)

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.

Parameters

value - System.Boolean

The value that configures the preventscroll.

Example


             @(Html.Kendo().Dialog()
                 .Name("Dialog")
                 .Visible(true)
                 .Content("Dialog content")
                 .Modal(modal => modal.PreventScroll(true))
            )

In this article
Not finding the help you need?