alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class PivotViewGroupSetting

    Represents grouping configuration for a single field in the Pivot Table.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    PivotGroupSetting
    PivotViewGroupSetting
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    PivotGroupSetting.Caption
    PivotGroupSetting.EndingAt
    PivotGroupSetting.GroupInterval
    PivotGroupSetting.Name
    PivotGroupSetting.RangeInterval
    PivotGroupSetting.StartingAt
    PivotGroupSetting.Type
    Namespace: Syncfusion.Blazor.PivotView
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class PivotViewGroupSetting : PivotGroupSetting, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    Supports grouping by data type:

    • Date fields can be grouped by intervals such as years, quarters, or months.
    • Number fields can be grouped into ranges (for example, 1–5, 6–10).
    • String fields can be grouped into custom categories.

    Used within PivotViewGroupSettings to define one or more group rules.

    Constructors

    PivotViewGroupSetting()

    Declaration
    public PivotViewGroupSetting()

    Properties

    CustomGroups

    Gets or sets custom group definitions for the field. Applicable only when GroupType is Custom.

    Declaration
    [Parameter]
    [JsonPropertyName("customGroups")]
    public List<PivotViewCustomGroup> CustomGroups { get; set; }
    Property Value
    Type Description
    List<PivotViewCustomGroup>

    A List<T> of PivotViewCustomGroup items that define custom categories. The default value is an empty collection.

    Remarks

    Custom groups categorize members into named buckets and are reflected in row and column headers.

    Runtime grouping can be performed from the context menu when multiple headers of the same field are selected.

    Examples

    The following example creates custom groups for a Product field:

    <PivotViewGroupSettings>
      <PivotViewGroupSetting Name="Product" Type="GroupType.Custom">
        <PivotViewCustomGroups>
          <PivotViewCustomGroup Caption="Beverages"
                                 Items="@(new string[] { "Tea", "Coffee" })" />
          <PivotViewCustomGroup Caption="Snacks"
                                 Items="@(new string[] { "Chips", "Nuts" })" />
        </PivotViewCustomGroups>
      </PivotViewGroupSetting>
    </PivotViewGroupSettings>
    See Also
    Custom grouping

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    Dispose(bool)

    Dispose unmanaged resources in the component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree. Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved