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

Constrain movement

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Theme Builder
  • constrain_movement.cshtml
  • Constrain_MovementController.cs

Also available for:

API REFERENCE

Description

The Telerik Window for ASP.NET MVC allows you to constrain its movement inside a specific container element. This functionality is enabled through the .Draggable(settings => settings.Containment() configuration option.

The contaiment options has the following specifics:

  • Overrides the AppendTo setting.
  • The contaiment elemen should have CSS position set(relative, absolute or fixed).

Support & Learning Resources