Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenPanel

    RadzenPanel component.

    Inheritance
    object
    ComponentBase
    RadzenComponent
    RadzenComponentWithChildren
    RadzenPanel
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    RadzenComponentWithChildren.ChildContent
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(MouseEventArgs)
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, int)
    RadzenComponent.OnAfterRenderAsync(bool)
    RadzenComponent.RaiseContextMenu(MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Dispose()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.CurrentStyle
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenPanel : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Examples
    <RadzenPanel AllowCollapse="true"">
        <HeaderTemplate>
            Header
        </HeaderTemplate>
        <ChildContent>
            Content
        </ChildContent>
        <SummaryTemplate>
            Summary
        </SummaryTemplate>
    </RadzenPanel>

    Constructors

    RadzenPanel()

    RadzenPanel component.

    Declaration
    public RadzenPanel()
    Examples
    <RadzenPanel AllowCollapse="true"">
        <HeaderTemplate>
            Header
        </HeaderTemplate>
        <ChildContent>
            Content
        </ChildContent>
        <SummaryTemplate>
            Summary
        </SummaryTemplate>
    </RadzenPanel>

    Properties

    AllowCollapse

    Gets or sets a value indicating whether collapsing is allowed. Set to false by default.

    Declaration
    [Parameter]
    public bool AllowCollapse { get; set; }
    Property Value
    Type Description
    bool

    true if collapsing is allowed; otherwise, false.

    Collapse

    Gets or sets the collapse callback.

    Declaration
    [Parameter]
    public EventCallback Collapse { get; set; }
    Property Value
    Type Description
    EventCallback

    The collapse callback.

    CollapseAriaLabel

    Gets or sets the aria-label attribute of the collapse button.

    Declaration
    [Parameter]
    public string CollapseAriaLabel { get; set; }
    Property Value
    Type Description
    string

    The aria-label attribute value of the collapse button.

    CollapseTitle

    Gets or sets the title attribute of the collapse button.

    Declaration
    [Parameter]
    public string CollapseTitle { get; set; }
    Property Value
    Type Description
    string

    The title attribute value of the collapse button.

    Collapsed

    Gets or sets a value indicating whether this RadzenPanel is collapsed.

    Declaration
    [Parameter]
    public bool Collapsed { get; set; }
    Property Value
    Type Description
    bool

    true if collapsed; otherwise, false.

    Expand

    Gets or sets the expand callback.

    Declaration
    [Parameter]
    public EventCallback Expand { get; set; }
    Property Value
    Type Description
    EventCallback

    The expand callback.

    ExpandAriaLabel

    Gets or sets the aria-label attribute of the expand button.

    Declaration
    [Parameter]
    public string ExpandAriaLabel { get; set; }
    Property Value
    Type Description
    string

    The aria-label attribute value of the expand button.

    ExpandTitle

    Gets or sets the title attribute of the expand button.

    Declaration
    [Parameter]
    public string ExpandTitle { get; set; }
    Property Value
    Type Description
    string

    The title attribute value of the expand button.

    FooterTemplate

    Gets or sets the footer template.

    Declaration
    [Parameter]
    public RenderFragment FooterTemplate { get; set; }
    Property Value
    Type Description
    RenderFragment

    The footer template.

    HeaderTemplate

    Gets or sets the header template.

    Declaration
    [Parameter]
    public RenderFragment HeaderTemplate { get; set; }
    Property Value
    Type Description
    RenderFragment

    The header template.

    Icon

    Gets or sets the icon.

    Declaration
    [Parameter]
    public string Icon { get; set; }
    Property Value
    Type Description
    string

    The icon.

    IconColor

    Gets or sets the icon color.

    Declaration
    [Parameter]
    public string IconColor { get; set; }
    Property Value
    Type Description
    string

    The icon color.

    SummaryTemplate

    Gets or sets the summary template.

    Declaration
    [Parameter]
    public RenderFragment SummaryTemplate { get; set; }
    Property Value
    Type Description
    RenderFragment

    The summary template.

    Text

    Gets or sets the text.

    Declaration
    [Parameter]
    public string Text { get; set; }
    Property Value
    Type Description
    string

    The text.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    RadzenPanel component.

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    string
    Overrides
    RadzenComponent.GetComponentCssClass()

    OnInitialized()

    Called by the Blazor runtime.

    Declaration
    protected override void OnInitialized()
    Overrides
    RadzenComponent.OnInitialized()

    SetParametersAsync(ParameterView)

    Called by the Blazor runtime when parameters are set.

    Declaration
    public override Task SetParametersAsync(ParameterView parameters)
    Parameters
    Type Name Description
    ParameterView parameters

    The parameters.

    Returns
    Type Description
    Task
    Overrides
    RadzenComponent.SetParametersAsync(ParameterView)

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT