alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class TreeGridPageSettings

    Configures Tree Grid page.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    TreeGridPageSettings
    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.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.TreeGrid
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class TreeGridPageSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    TreeGridPageSettings()

    Declaration
    public TreeGridPageSettings()

    Properties

    CurrentPage

    Defines the current page number of the pager in TreeGrid.

    Declaration
    [Parameter]
    public int CurrentPage { get; set; }
    Property Value
    Type Description
    int

    The current page number. The default is 1.

    EnableQueryString

    If EnableQueryString is set to true, then it passes current page information as a query string along with the URL while navigating to another page in TreeGrid.

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

    true if query strings along with URLs are enabled; otherwise, false.

    PageCount

    Defines the number of pages to be displayed in the TreeGrid pager container.

    Declaration
    [Parameter]
    public int PageCount { get; set; }
    Property Value
    Type Description
    int

    The number of pages. The default is 8.

    PageSize

    Defines the number of records to be displayed in TreeGrid per page.

    Declaration
    [Parameter]
    public int PageSize { get; set; }
    Property Value
    Type Description
    int

    The page size. The default is 12.

    PageSizeMode

    Specifies the mode of record count on a page. The options are, All: Count all the records. Root: Count only zeroth level parent records.

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

    One of the PageSizeMode enumeration values. The default is Root.

    PageSizes

    If PageSizes is set to true or an array of values, it renders a DropDownList in the pager of TreeGrid which allows selecting pageSize from DropDownList.

    Declaration
    [Parameter]
    public object PageSizes { get; set; }
    Property Value
    Type Description
    object

    A boolean or array of values for page sizes.

    Template

    Defines the template which renders customized elements in the pager instead of default elements.

    Declaration
    [Parameter]
    [JsonIgnore]
    public RenderFragment<object> Template { get; set; }
    Property Value
    Type Description
    RenderFragment<object>

    Custom template content rendered in the pager.

    Remarks

    The parameters passed to the templates can be accessed using an implicit parameter named context. The context is of type PagerTemplateContext of the grid.

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    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 - 2025 Syncfusion Inc. All Rights Reserved