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

Constrain movement

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
HtmlHelper
TagHelper
Files:
constrain_movement.cshtml
Constrain_MovementController.cs
Constrain_Movement_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The demo example shows how to constrain the movement of the UI for ASP.NET Core Window inside a container element. The feature is enabled through the Containment() option and specifying the position of the container using relative, absolute, or fixed CSS rules.

Support & Learning Resources