A fieldset container component that groups related form fields with a legend/header and optional collapse functionality. RadzenFieldset provides semantic form grouping with visual borders, useful for organizing complex forms into logical sections. Fieldsets are HTML form elements that semantically group related inputs, improving form structure and accessibility. Features visual and semantic grouping of related form fields, customizable header via Text or HeaderTemplate, optional expand/collapse to hide/show grouped fields, optional icon in the legend, optional summary content shown when collapsed, and screen reader announcement of fieldset legends for grouped fields. Use to organize forms into sections like "Personal Information", "Address", "Payment Details". When AllowCollapse is enabled, users can collapse sections they don't need to see.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenFieldset : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderBasic fieldset grouping form fields:
<RadzenFieldset Text="Personal Information">
<RadzenStack Gap="1rem">
<RadzenFormField Text="First Name">
<RadzenTextBox @bind-Value=@model.FirstName />
</RadzenFormField>
<RadzenFormField Text="Last Name">
<RadzenTextBox @bind-Value=@model.LastName />
</RadzenFormField>
</RadzenStack>
</RadzenFieldset>
Collapsible fieldset:
<RadzenFieldset Text="Advanced Options" Icon="settings" AllowCollapse="true">
Advanced configuration fields...
</RadzenFieldset>A fieldset container component that groups related form fields with a legend/header and optional collapse functionality. RadzenFieldset provides semantic form grouping with visual borders, useful for organizing complex forms into logical sections. Fieldsets are HTML form elements that semantically group related inputs, improving form structure and accessibility. Features visual and semantic grouping of related form fields, customizable header via Text or HeaderTemplate, optional expand/collapse to hide/show grouped fields, optional icon in the legend, optional summary content shown when collapsed, and screen reader announcement of fieldset legends for grouped fields. Use to organize forms into sections like "Personal Information", "Address", "Payment Details". When AllowCollapse is enabled, users can collapse sections they don't need to see.
public RadzenFieldset()Gets or sets a value indicating whether collapsing is allowed. Set to false by default.
public bool AllowCollapse { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether collapsing is allowed. Set to false by default. |
Gets or sets the child content.
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the child content. |
Gets or sets the collapse callback.
public EventCallback Collapse { get; set; }
| Type | Description |
|---|---|
| EventCallback | Gets or sets the collapse callback. |
Gets or sets the aria-label attribute of the collapse button.
public string CollapseAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the aria-label attribute of the collapse button. |
Gets or sets the title attribute of the collapse button.
public string CollapseTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the title attribute of the collapse button. |
Gets or sets a value indicating whether this RadzenFieldset is collapsed.
public bool Collapsed { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this RadzenFieldset is collapsed. |
Gets or sets the expand callback.
public EventCallback Expand { get; set; }
| Type | Description |
|---|---|
| EventCallback | Gets or sets the expand callback. |
Gets or sets the aria-label attribute of the expand button.
public string ExpandAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the aria-label attribute of the expand button. |
Gets or sets the title attribute of the expand button.
public string ExpandTitle { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the title attribute of the expand button. |
Gets or sets the header template.
public RenderFragment HeaderTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the header template. |
Gets or sets the icon.
public string Icon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the icon. |
Gets or sets the icon color.
public string IconColor { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the icon color. |
Gets or sets the summary template.
public RenderFragment SummaryTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the summary template. |
Gets or sets the text.
public string Text { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the text. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| Task |