EnumFormOrientation
Controls the visual arrangement and positioning of form field labels relative to their input controls. Use this to optimize form layouts for different screen sizes, user preferences, and application design requirements.
Definition
Namespace:Telerik.Blazor
Assembly:Telerik.Blazor.dll
Syntax:
public enum FormOrientation
Fields
Horizontal
Positions labels beside their corresponding input controls in a side-by-side horizontal arrangement. Perfect for desktop applications, wide screens, and forms where vertical space conservation is important. Enables more compact form layouts that can display more fields in the visible area without scrolling. Requires sufficient horizontal space to accommodate both labels and inputs comfortably.
Vertical
Arranges labels above their corresponding input controls in a stacked vertical layout. Ideal for mobile-friendly forms, narrow screen displays, and scenarios where horizontal space is limited. Provides better readability on small screens and allows for longer label text without cramping the input area. This is the default orientation that works well for most responsive web applications.