Class TreeGridPageSettings
Inheritance
Namespace: Syncfusion.EJ2.TreeGrid
Assembly: Syncfusion.EJ2.dll
Syntax
public class TreeGridPageSettings : EJTagHelper
Constructors
TreeGridPageSettings()
Declaration
public TreeGridPageSettings()
Properties
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
CurrentPage
Sets the current page number in the TreeGrid, defining which page of data is initially displayed to users.
Declaration
public double CurrentPage { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
EnableQueryString
When set to true, appends the current page information as a query string to the remote service URL during page navigation within the TreeGrid.
Declaration
public bool EnableQueryString { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
PageCount
Determines the number of page numbers displayed in the TreeGrid pager container. This setting helps users navigate between different parts of the dataset.
Declaration
public double PageCount { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 8 |
PageSize
Specifies the number of records to display per page in the TreeGrid. Adjust this setting to control the volume of data presented on each page.
Declaration
public double PageSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 12 |
PageSizeMode
Specifies the mode for counting records on a page, determining whether all records are counted or only zeroth level parent records. The available options are:
All
: Includes all records in the count.
Root
: Includes only zeroth level parent records.
Declaration
public PageSizeMode PageSizeMode { get; set; }
Property Value
Type | Description |
---|---|
PageSizeMode | The default value is PageSizeMode.All |
PageSizes
Enables a DropDownList in the TreeGrid pager, allowing users to select the page size. Accepts either a boolean to toggle this feature or an array of page size options.
Declaration
public object PageSizes { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Template
Provides a custom template for rendering pager elements in the TreeGrid, offering enhanced flexibility and control over the pager's appearance and functionality. Accepts a template string or the ID of an HTML element.
Declaration
public string Template { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |