Class TreeGridBuilder
Inheritance
System.Object
TreeGridBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class TreeGridBuilder : ControlBuilder
Constructors
TreeGridBuilder()
Declaration
TreeGridBuilder(TreeGrid)
Declaration
public TreeGridBuilder(TreeGrid model)
Parameters
Fields
model
Declaration
Field Value
Properties
HtmlAttr
Declaration
public IDictionary<string, object> HtmlAttr { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
ID
Declaration
public string ID { get; set; }
Property Value
Type |
Description |
System.String |
|
Output
Declaration
public override TextWriter Output { get; set; }
Property Value
Type |
Description |
System.IO.TextWriter |
|
Overrides
Methods
ActionBegin(String)
Triggers when TreeGrid actions such as sorting, filtering, paging etc., starts.
Declaration
public TreeGridBuilder ActionBegin(string actionBegin)
Parameters
Type |
Name |
Description |
System.String |
actionBegin |
|
Returns
ActionComplete(String)
Triggers when TreeGrid actions such as sorting, filtering, paging etc. are completed.
Declaration
public TreeGridBuilder ActionComplete(string actionComplete)
Parameters
Type |
Name |
Description |
System.String |
actionComplete |
|
Returns
ActionFailure(String)
Triggers when any TreeGrid action failed to achieve the desired results.
Declaration
public TreeGridBuilder ActionFailure(string actionFailure)
Parameters
Type |
Name |
Description |
System.String |
actionFailure |
|
Returns
Aggregates(Action<TreeGridAggregateBuilder>)
Declaration
public TreeGridBuilder Aggregates(Action<TreeGridAggregateBuilder> aggregates)
Parameters
Returns
Aggregates(List<TreeGridAggregate>)
Configures the TreeGrid aggregate rows.
Check the Aggregates
for its configuration.
Declaration
public TreeGridBuilder Aggregates(List<TreeGridAggregate> aggregates)
Parameters
Returns
AllowExcelExport(Boolean)
If allowExcelExport
set to true, then it will allow the user to export treegrid to Excel file.
Declaration
public TreeGridBuilder AllowExcelExport(bool allowExcelExport = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowExcelExport |
|
Returns
AllowFiltering(Boolean)
If allowFiltering
is set to true the filter bar will be displayed.
If set to false the filter bar will not be displayed.
Filter bar allows the user to filter tree grid records with required criteria.
Declaration
public TreeGridBuilder AllowFiltering(bool allowFiltering = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowFiltering |
|
Returns
AllowMultiSorting(Boolean)
If allowMultiSorting
set to true, then it will allow the user to sort multiple column in the treegrid.
allowSorting
should be true.
Declaration
public TreeGridBuilder AllowMultiSorting(bool allowMultiSorting = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowMultiSorting |
|
Returns
AllowPaging(Boolean)
If allowPaging
is set to true, pager renders.
Declaration
public TreeGridBuilder AllowPaging(bool allowPaging = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowPaging |
|
Returns
AllowPdfExport(Boolean)
If allowPdfExport
set to true, then it will allow the user to export treegrid to Pdf file.
Declaration
public TreeGridBuilder AllowPdfExport(bool allowPdfExport = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowPdfExport |
|
Returns
AllowReordering(Boolean)
If allowReordering
is set to true, TreeGrid columns can be reordered.
Reordering can be done by drag and drop of a particular column from one index to another index.
If TreeGrid is rendered with stacked headers, reordering is allowed only at the same level as the column headers.
Declaration
public TreeGridBuilder AllowReordering(bool allowReordering = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowReordering |
|
Returns
AllowResizing(Boolean)
If allowResizing
is set to true, TreeGrid columns can be resized.
Declaration
public TreeGridBuilder AllowResizing(bool allowResizing = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowResizing |
|
Returns
AllowRowDragAndDrop(Boolean)
If allowRowDragAndDrop
is set to true, you can drag and drop treegrid rows at another treegrid.
Declaration
public TreeGridBuilder AllowRowDragAndDrop(bool allowRowDragAndDrop = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowRowDragAndDrop |
|
Returns
AllowSelection(Boolean)
If allowSelection
is set to true, it allows selection of (highlight row) TreeGrid records by clicking it.
Declaration
public TreeGridBuilder AllowSelection(bool allowSelection = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowSelection |
|
Returns
AllowSorting(Boolean)
If allowSorting
is set to true, it allows sorting of treegrid records when column header is clicked.
Declaration
public TreeGridBuilder AllowSorting(bool allowSorting = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowSorting |
|
Returns
AllowTextWrap(Boolean)
If allowTextWrap
set to true,
then text content will wrap to the next line when its text content exceeds the width of the Column Cells.
Declaration
public TreeGridBuilder AllowTextWrap(bool allowTextWrap = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowTextWrap |
|
Returns
AutoCheckHierarchy(Boolean)
If autoCheckHierarchy
is set to true, hierarchy checkbox selection is enabled in TreeGrid.
Declaration
public TreeGridBuilder AutoCheckHierarchy(bool autoCheckHierarchy = true)
Parameters
Type |
Name |
Description |
System.Boolean |
autoCheckHierarchy |
|
Returns
BatchAdd(String)
Triggers when records are added in batch mode.
Declaration
public TreeGridBuilder BatchAdd(string batchAdd)
Parameters
Type |
Name |
Description |
System.String |
batchAdd |
|
Returns
BatchCancel(String)
Triggers before records are added in batch mode.
Declaration
public TreeGridBuilder BatchCancel(string batchCancel)
Parameters
Type |
Name |
Description |
System.String |
batchCancel |
|
Returns
BatchDelete(String)
Triggers when records are deleted in batch mode.
Declaration
public TreeGridBuilder BatchDelete(string batchDelete)
Parameters
Type |
Name |
Description |
System.String |
batchDelete |
|
Returns
BeforeBatchAdd(String)
Triggers before records are added in batch mode.
Declaration
public TreeGridBuilder BeforeBatchAdd(string beforeBatchAdd)
Parameters
Type |
Name |
Description |
System.String |
beforeBatchAdd |
|
Returns
BeforeBatchDelete(String)
Triggers before records are deleted in batch mode.
Declaration
public TreeGridBuilder BeforeBatchDelete(string beforeBatchDelete)
Parameters
Type |
Name |
Description |
System.String |
beforeBatchDelete |
|
Returns
BeforeBatchSave(String)
Triggers before records are saved in batch mode.
Declaration
public TreeGridBuilder BeforeBatchSave(string beforeBatchSave)
Parameters
Type |
Name |
Description |
System.String |
beforeBatchSave |
|
Returns
BeforeCopy(String)
Triggers before TreeGrid copy action.
Declaration
public TreeGridBuilder BeforeCopy(string beforeCopy)
Parameters
Type |
Name |
Description |
System.String |
beforeCopy |
|
Returns
BeforeDataBound(String)
Triggers before data is bound to Tree Grid.
Declaration
public TreeGridBuilder BeforeDataBound(string beforeDataBound)
Parameters
Type |
Name |
Description |
System.String |
beforeDataBound |
|
Returns
BeforeExcelExport(String)
Triggers before TreeGrid data is exported to Excel file.
Declaration
public TreeGridBuilder BeforeExcelExport(string beforeExcelExport)
Parameters
Type |
Name |
Description |
System.String |
beforeExcelExport |
|
Returns
BeforePaste(String)
Triggers before TreeGrid paste action.
Declaration
public TreeGridBuilder BeforePaste(string beforePaste)
Parameters
Type |
Name |
Description |
System.String |
beforePaste |
|
Returns
BeforePdfExport(String)
Triggers before TreeGrid data is exported to PDF document.
Declaration
public TreeGridBuilder BeforePdfExport(string beforePdfExport)
Parameters
Type |
Name |
Description |
System.String |
beforePdfExport |
|
Returns
BeforePrint(String)
Triggers before the print action starts.
Declaration
public TreeGridBuilder BeforePrint(string beforePrint)
Parameters
Type |
Name |
Description |
System.String |
beforePrint |
|
Returns
BeginEdit(String)
Triggers before the record is to be edit.
Declaration
public TreeGridBuilder BeginEdit(string beginEdit)
Parameters
Type |
Name |
Description |
System.String |
beginEdit |
|
Returns
CellDeselected(String)
Triggers when a particular selected cell is deselected.
Declaration
public TreeGridBuilder CellDeselected(string cellDeselected)
Parameters
Type |
Name |
Description |
System.String |
cellDeselected |
|
Returns
CellDeselecting(String)
Triggers before the selected cell is deselecting.
Declaration
public TreeGridBuilder CellDeselecting(string cellDeselecting)
Parameters
Type |
Name |
Description |
System.String |
cellDeselecting |
|
Returns
CellEdit(String)
Triggers when the cell is being edited.
Declaration
public TreeGridBuilder CellEdit(string cellEdit)
Parameters
Type |
Name |
Description |
System.String |
cellEdit |
|
Returns
CellSave(String)
Triggers when cell is saved.
Declaration
public TreeGridBuilder CellSave(string cellSave)
Parameters
Type |
Name |
Description |
System.String |
cellSave |
|
Returns
CellSaved(String)
Triggers when cell is saved.
Declaration
public TreeGridBuilder CellSaved(string cellSaved)
Parameters
Type |
Name |
Description |
System.String |
cellSaved |
|
Returns
CellSelected(String)
Triggers after a cell is selected.
Declaration
public TreeGridBuilder CellSelected(string cellSelected)
Parameters
Type |
Name |
Description |
System.String |
cellSelected |
|
Returns
CellSelecting(String)
Triggers before any cell selection occurs.
Declaration
public TreeGridBuilder CellSelecting(string cellSelecting)
Parameters
Type |
Name |
Description |
System.String |
cellSelecting |
|
Returns
CheckboxChange(String)
Triggers when the check box state change in checkbox column.
Declaration
public TreeGridBuilder CheckboxChange(string checkboxChange)
Parameters
Type |
Name |
Description |
System.String |
checkboxChange |
|
Returns
ChildMapping(String)
Specifies the mapping property path for child records in data source
{% codeBlock src='treegrid/childMapping/index.md' %}{% endcodeBlock %}
Declaration
public TreeGridBuilder ChildMapping(string childMapping)
Parameters
Type |
Name |
Description |
System.String |
childMapping |
|
Returns
ClipMode(ClipMode)
Defines the mode of clip. The available modes are,
also it will display the tooltip while hover on ellipsis is applied.
Declaration
public TreeGridBuilder ClipMode(ClipMode clipMode)
Parameters
Returns
Collapsed(String)
Triggers after the record is collapsed.
Declaration
public TreeGridBuilder Collapsed(string collapsed)
Parameters
Type |
Name |
Description |
System.String |
collapsed |
|
Returns
Collapsing(String)
Triggers while collapsing the TreeGrid record
Declaration
public TreeGridBuilder Collapsing(string collapsing)
Parameters
Type |
Name |
Description |
System.String |
collapsing |
|
Returns
ColumnDrag(String)
Triggers when column header element is dragged (moved) continuously.
Declaration
public TreeGridBuilder ColumnDrag(string columnDrag)
Parameters
Type |
Name |
Description |
System.String |
columnDrag |
|
Returns
ColumnDragStart(String)
Triggers when column header element drag (move) starts.
Declaration
public TreeGridBuilder ColumnDragStart(string columnDragStart)
Parameters
Type |
Name |
Description |
System.String |
columnDragStart |
|
Returns
ColumnDrop(String)
Triggers when a column header element is dropped on the target column.
Declaration
public TreeGridBuilder ColumnDrop(string columnDrop)
Parameters
Type |
Name |
Description |
System.String |
columnDrop |
|
Returns
ColumnMenuClick(String)
Triggers when click on column menu.
Declaration
public TreeGridBuilder ColumnMenuClick(string columnMenuClick)
Parameters
Type |
Name |
Description |
System.String |
columnMenuClick |
|
Returns
ColumnMenuItems(Object)
columnMenuItems
defines both built-in and custom column menu items.
The available built-in items are,
AutoFitAll
- Auto fit the size of all columns.
AutoFit
- Auto fit the current column.
SortAscending
- Sort the current column in ascending order.
SortDescending
- Sort the current column in descending order.
Filter
- Filter options will show based on filterSettings property like filterbar, menu filter.
Declaration
public TreeGridBuilder ColumnMenuItems(object columnMenuItems)
Parameters
Type |
Name |
Description |
System.Object |
columnMenuItems |
|
Returns
ColumnMenuOpen(String)
Triggers before column menu opens.
Declaration
public TreeGridBuilder ColumnMenuOpen(string columnMenuOpen)
Parameters
Type |
Name |
Description |
System.String |
columnMenuOpen |
|
Returns
ColumnQueryMode(Object)
columnQueryMode
provides options to retrieves data from the data source.Their types are
All
: It retrieves whole data source.
Schema
: retrieves data for all the defined columns in TreeGrid from the data source.
ExcludeHidden
: retrieves data only for visible columns of TreeGrid from the data Source.
Declaration
public TreeGridBuilder ColumnQueryMode(object columnQueryMode)
Parameters
Type |
Name |
Description |
System.Object |
columnQueryMode |
|
Returns
Columns(Action<TreeGridColumnBuilder>)
Declaration
public TreeGridBuilder Columns(Action<TreeGridColumnBuilder> columns)
Parameters
Returns
Columns(List<TreeGridColumn>)
Defines the schema of dataSource.
If the columns
declaration is empty or undefined then the columns
are automatically generated from data source.
{% codeBlock src='treegrid/columns/index.md' %}{% endcodeBlock %}
Declaration
public TreeGridBuilder Columns(List<TreeGridColumn> columns)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<TreeGridColumn> |
columns |
|
Returns
Columns(Object)
Defines the schema of dataSource.
If the columns
declaration is empty or undefined then the columns
are automatically generated from data source.
{% codeBlock src='treegrid/columns/index.md' %}{% endcodeBlock %}
Declaration
public TreeGridBuilder Columns(object columns)
Parameters
Type |
Name |
Description |
System.Object |
columns |
|
Returns
Columns(String[])
Defines the schema of dataSource.
If the columns
declaration is empty or undefined then the columns
are automatically generated from data source.
{% codeBlock src='treegrid/columns/index.md' %}{% endcodeBlock %}
Declaration
public TreeGridBuilder Columns(string[] columns)
Parameters
Type |
Name |
Description |
System.String[] |
columns |
|
Returns
Triggers when click on context menu.
Declaration
public TreeGridBuilder ContextMenuClick(string contextMenuClick)
Parameters
Type |
Name |
Description |
System.String |
contextMenuClick |
|
Returns
contextMenuItems
defines both built-in and custom context menu items.
The available built-in items are,
AutoFitAll
- Auto fit the size of all columns.
AutoFit
- Auto fit the current column.
Edit
- Edit the current record.
Delete
- Delete the current record.
Save
- Save the edited record.
Cancel
- Cancel the edited state.
PdfExport
- Export the grid as Pdf format.
ExcelExport
- Export the grid as Excel format.
CsvExport
- Export the grid as CSV format.
SortAscending
- Sort the current column in ascending order.
SortDescending
- Sort the current column in descending order.
FirstPage
- Go to the first page.
PrevPage
- Go to the previous page.
LastPage
- Go to the last page.
NextPage
- Go to the next page.
Declaration
public TreeGridBuilder ContextMenuItems(object contextMenuItems)
Parameters
Type |
Name |
Description |
System.Object |
contextMenuItems |
|
Returns
Triggers before context menu opens.
Declaration
public TreeGridBuilder ContextMenuOpen(string contextMenuOpen)
Parameters
Type |
Name |
Description |
System.String |
contextMenuOpen |
|
Returns
CopyHierarchyMode(CopyHierarchyType)
copyHierarchyMode
Defines the copy clipboard types.
The available built-in items are,
Parent
- Copy the selected data with parent record.
Child
- Copy the selected data with child record.
Both
- Copy the selected data with both parent and child record.
None
- Copy only the selected record.
Declaration
public TreeGridBuilder CopyHierarchyMode(CopyHierarchyType copyHierarchyMode)
Parameters
Returns
Created(String)
Triggers when the component is created.
Declaration
public TreeGridBuilder Created(string created)
Parameters
Type |
Name |
Description |
System.String |
created |
|
Returns
DataBound(String)
Triggers when data source is populated in the TreeGrid.
Declaration
public TreeGridBuilder DataBound(string dataBound)
Parameters
Type |
Name |
Description |
System.String |
dataBound |
|
Returns
DataSource(Action<DataManagerBuilder>)
Declaration
public TreeGridBuilder DataSource(Action<DataManagerBuilder> dataSource)
Parameters
Returns
DataSource(Object)
It is used to render TreeGrid table rows.
{% codeBlock src='treegrid/dataSource/index.md' %}{% endcodeBlock %}
Declaration
public TreeGridBuilder DataSource(object dataSource)
Parameters
Type |
Name |
Description |
System.Object |
dataSource |
|
Returns
DataSourceChanged(String)
Triggers when the TreeGrid data is added, deleted and updated.
Invoke the done method from the argument to start render after edit operation.
Declaration
public TreeGridBuilder DataSourceChanged(string dataSourceChanged)
Parameters
Type |
Name |
Description |
System.String |
dataSourceChanged |
|
Returns
DataStateChange(String)
Triggers when the TreeGrid actions such as Sorting, Paging etc., are done.
In this event,the current view data and total record count should be assigned to the dataSource
based on the action performed.
Declaration
public TreeGridBuilder DataStateChange(string dataStateChange)
Parameters
Type |
Name |
Description |
System.String |
dataStateChange |
|
Returns
DetailDataBound(String)
Triggers after detail row expands.
This event triggers at initial expand.
Declaration
public TreeGridBuilder DetailDataBound(string detailDataBound)
Parameters
Type |
Name |
Description |
System.String |
detailDataBound |
|
Returns
DetailTemplate(String)
The detail template allows you to show or hide additional information about a particular row.
Declaration
public TreeGridBuilder DetailTemplate(string detailTemplate)
Parameters
Type |
Name |
Description |
System.String |
detailTemplate |
|
Returns
EditSettings(TreeGridEditSettings)
Configures the edit settings.
Declaration
public TreeGridBuilder EditSettings(TreeGridEditSettings editSettings)
Parameters
Returns
EditSettings(Action<TreeGridEditSettingsBuilder>)
Declaration
public TreeGridBuilder EditSettings(Action<TreeGridEditSettingsBuilder> editSettings)
Parameters
Returns
EnableAdaptiveUI(Boolean)
If enableAdaptiveUI
is set to true, the pop-up UI will become adaptive to small screens,
and be used for filtering and other features.
Declaration
public TreeGridBuilder EnableAdaptiveUI(bool enableAdaptiveUI = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableAdaptiveUI |
|
Returns
EnableAltRow(Boolean)
If enableAltRow
is set to true, the TreeGrid will render with e-altrow
CSS class to the alternative tr elements.
Check the AltRow
to customize the styles of alternative rows.
Declaration
public TreeGridBuilder EnableAltRow(bool enableAltRow = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableAltRow |
|
Returns
EnableAutoFill(Boolean)
If enableAutoFill
is set to true, then the auto fill icon will displayed on cell selection for copy cells.
It requires the selection mode
to be Cell and cellSelectionMode
to be Box
.
Declaration
public TreeGridBuilder EnableAutoFill(bool enableAutoFill = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableAutoFill |
|
Returns
EnableCollapseAll(Boolean)
Specifies whether to load all the rows in collapsed state when the TreeGrid is rendered for the first time.
Declaration
public TreeGridBuilder EnableCollapseAll(bool enableCollapseAll = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableCollapseAll |
|
Returns
EnableColumnVirtualization(Boolean)
If enableColumnVirtualization
set to true, then the Tree Grid will render only the columns visible within the view-port
and load subsequent columns on horizontal scrolling. This helps to load large dataset of columns in Tree Grid.
Declaration
public TreeGridBuilder EnableColumnVirtualization(bool enableColumnVirtualization = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableColumnVirtualization |
|
Returns
EnableHover(Boolean)
If enableHover
is set to true, the row hover is enabled in the TreeGrid.
Declaration
public TreeGridBuilder EnableHover(bool enableHover = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableHover |
|
Returns
EnableHtmlSanitizer(Boolean)
Specifies whether to display or remove the untrusted HTML values in the TreeGrid component.
If enableHtmlSanitizer
set to true, then it will sanitize any suspected untrusted strings and scripts before rendering them.
Declaration
public TreeGridBuilder EnableHtmlSanitizer(bool enableHtmlSanitizer = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableHtmlSanitizer |
|
Returns
EnableImmutableMode(Boolean)
If enableImmutableMode
is set to true, the TreeGrid will reuse old rows if it exists in the new result instead of
full refresh while performing the TreeGrid actions.
Declaration
public TreeGridBuilder EnableImmutableMode(bool enableImmutableMode = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableImmutableMode |
|
Returns
If enableInfiniteScrolling
set to true, then the data will be loaded in TreeGrid when the scrollbar reaches the end.
This helps to load large dataset in TreeGrid.
Declaration
public TreeGridBuilder EnableInfiniteScrolling(bool enableInfiniteScrolling = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableInfiniteScrolling |
|
Returns
EnablePersistence(Boolean)
Enable or disable persisting component's state between page reloads.
Declaration
public TreeGridBuilder EnablePersistence(bool enablePersistence = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
EnableRtl(Boolean)
Enable or disable rendering component in right to left direction.
Declaration
public TreeGridBuilder EnableRtl(bool enableRtl = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRtl |
|
Returns
EnableVirtualization(Boolean)
If enableVirtualization
set to true, then the TreeGrid will render only the rows visible within the view-port
and load subsequent rows on vertical scrolling. This helps to load large dataset in TreeGrid.
Declaration
public TreeGridBuilder EnableVirtualization(bool enableVirtualization = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableVirtualization |
|
Returns
EnableVirtualMaskRow(Boolean)
Specifies whether to display shimmer effect during scrolling action in virtual scrolling feature.
If disabled, spinner is shown instead of shimmer effect.
Declaration
public TreeGridBuilder EnableVirtualMaskRow(bool enableVirtualMaskRow = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableVirtualMaskRow |
|
Returns
ExcelExportComplete(String)
Triggers after TreeGrid data is exported to Excel file.
Declaration
public TreeGridBuilder ExcelExportComplete(string excelExportComplete)
Parameters
Type |
Name |
Description |
System.String |
excelExportComplete |
|
Returns
Triggers before exporting each header cell to Excel file.
You can also customize the Excel cells.
Declaration
public TreeGridBuilder ExcelHeaderQueryCellInfo(string excelHeaderQueryCellInfo)
Parameters
Type |
Name |
Description |
System.String |
excelHeaderQueryCellInfo |
|
Returns
ExcelQueryCellInfo(String)
Triggers before exporting each cell to Excel file.
You can also customize the Excel cells.
Declaration
public TreeGridBuilder ExcelQueryCellInfo(string excelQueryCellInfo)
Parameters
Type |
Name |
Description |
System.String |
excelQueryCellInfo |
|
Returns
Expanded(String)
Triggers after the record is expanded
Declaration
public TreeGridBuilder Expanded(string expanded)
Parameters
Type |
Name |
Description |
System.String |
expanded |
|
Returns
Expanding(String)
Triggers while expanding the TreeGrid record
Declaration
public TreeGridBuilder Expanding(string expanding)
Parameters
Type |
Name |
Description |
System.String |
expanding |
|
Returns
ExpandStateMapping(String)
Specifies the mapping property path for the expand status of a record in data source.
Declaration
public TreeGridBuilder ExpandStateMapping(string expandStateMapping)
Parameters
Type |
Name |
Description |
System.String |
expandStateMapping |
|
Returns
FilterSettings(TreeGridFilterSettings)
Configures the filter settings of the TreeGrid.
Declaration
public TreeGridBuilder FilterSettings(TreeGridFilterSettings filterSettings)
Parameters
Returns
FilterSettings(Action<TreeGridFilterSettingsBuilder>)
Declaration
public TreeGridBuilder FilterSettings(Action<TreeGridFilterSettingsBuilder> filterSettings)
Parameters
Returns
FrozenColumns(Double)
Gets or sets the number of frozen columns.
Declaration
public TreeGridBuilder FrozenColumns(double frozenColumns)
Parameters
Type |
Name |
Description |
System.Double |
frozenColumns |
|
Returns
FrozenRows(Double)
Gets or sets the number of frozen rows.
Declaration
public TreeGridBuilder FrozenRows(double frozenRows)
Parameters
Type |
Name |
Description |
System.Double |
frozenRows |
|
Returns
GridLines(GridLine)
Defines the mode of TreeGrid lines. The available modes are,
Declaration
public TreeGridBuilder GridLines(GridLine gridLines)
Parameters
Type |
Name |
Description |
GridLine |
gridLines |
|
Returns
HasChildMapping(String)
Specifies whether record is parent or not for the remote data binding
Declaration
public TreeGridBuilder HasChildMapping(string hasChildMapping)
Parameters
Type |
Name |
Description |
System.String |
hasChildMapping |
|
Returns
Triggered for stacked header.
Declaration
public TreeGridBuilder HeaderCellInfo(string headerCellInfo)
Parameters
Type |
Name |
Description |
System.String |
headerCellInfo |
|
Returns
Height(Double)
Defines the scrollable height of the TreeGrid content.
Declaration
public TreeGridBuilder Height(double height)
Parameters
Type |
Name |
Description |
System.Double |
height |
|
Returns
Height(String)
Defines the scrollable height of the TreeGrid content.
Declaration
public TreeGridBuilder Height(string height)
Parameters
Type |
Name |
Description |
System.String |
height |
|
Returns
HtmlAttributes(Object)
Allows additional HTML attributes such as title, name, etc., and
accepts n number of attributes in a key-value pair format.
Declaration
public TreeGridBuilder HtmlAttributes(object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Object |
htmlAttributes |
|
Returns
IdMapping(String)
Specifies the name of the field in the dataSource, which contains the id of that row.
{% codeBlock src='treegrid/idMapping/index.md' %}{% endcodeBlock %}
Declaration
public TreeGridBuilder IdMapping(string idMapping)
Parameters
Type |
Name |
Description |
System.String |
idMapping |
|
Returns
Configures the infinite scroll settings.
Declaration
public TreeGridBuilder InfiniteScrollSettings(TreeGridInfiniteScrollSettings infiniteScrollSettings)
Parameters
Returns
Declaration
public TreeGridBuilder InfiniteScrollSettings(Action<TreeGridInfiniteScrollSettingsBuilder> infiniteScrollSettings)
Parameters
Returns
Load(String)
This event allows customization of TreeGrid properties before rendering.
Declaration
public TreeGridBuilder Load(string load)
Parameters
Type |
Name |
Description |
System.String |
load |
|
Returns
LoadChildOnDemand(Boolean)
If loadChildOnDemand
is enabled, parent records are render in expanded state.
Declaration
public TreeGridBuilder LoadChildOnDemand(bool loadChildOnDemand = true)
Parameters
Type |
Name |
Description |
System.Boolean |
loadChildOnDemand |
|
Returns
LoadingIndicator(TreeGridLoadingIndicator)
Configures the loading indicator of the Tree Grid. Specifies whether to display spinner or shimmer effect
during the waiting time on any actions (paging, sorting, filtering, CRUD operations) performed in Tree Grid.
Declaration
public TreeGridBuilder LoadingIndicator(TreeGridLoadingIndicator loadingIndicator)
Parameters
Returns
LoadingIndicator(Action<TreeGridLoadingIndicatorBuilder>)
Declaration
public TreeGridBuilder LoadingIndicator(Action<TreeGridLoadingIndicatorBuilder> loadingIndicator)
Parameters
Returns
Locale(String)
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public TreeGridBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
PageSettings(TreeGridPageSettings)
Configures the pager in the TreeGrid.
Declaration
public TreeGridBuilder PageSettings(TreeGridPageSettings pageSettings)
Parameters
Returns
PageSettings(Action<TreeGridPageSettingsBuilder>)
Declaration
public TreeGridBuilder PageSettings(Action<TreeGridPageSettingsBuilder> pageSettings)
Parameters
Returns
ParentIdMapping(String)
Specifies the name of the field in the dataSource, which contains the parent’s id
{% codeBlock src='treegrid/parentIdMapping/index.md' %}{% endcodeBlock %}
Declaration
public TreeGridBuilder ParentIdMapping(string parentIdMapping)
Parameters
Type |
Name |
Description |
System.String |
parentIdMapping |
|
Returns
PdfExportComplete(String)
Triggers after TreeGrid data is exported to PDF document.
Declaration
public TreeGridBuilder PdfExportComplete(string pdfExportComplete)
Parameters
Type |
Name |
Description |
System.String |
pdfExportComplete |
|
Returns
Triggers before exporting each header cell to PDF document.
You can also customize the PDF cells.
Declaration
public TreeGridBuilder PdfHeaderQueryCellInfo(string pdfHeaderQueryCellInfo)
Parameters
Type |
Name |
Description |
System.String |
pdfHeaderQueryCellInfo |
|
Returns
PdfQueryCellInfo(String)
Triggers before exporting each cell to PDF document.
You can also customize the PDF cells.
Declaration
public TreeGridBuilder PdfQueryCellInfo(string pdfQueryCellInfo)
Parameters
Type |
Name |
Description |
System.String |
pdfQueryCellInfo |
|
Returns
PrintComplete(String)
Triggers after print action is completed.
Declaration
public TreeGridBuilder PrintComplete(string printComplete)
Parameters
Type |
Name |
Description |
System.String |
printComplete |
|
Returns
PrintMode(PrintMode)
Defines the print modes. The available print modes are
Declaration
public TreeGridBuilder PrintMode(PrintMode printMode)
Parameters
Returns
Query(String)
Defines the external Query
that will be executed along with data processing.
Declaration
public TreeGridBuilder Query(string query)
Parameters
Type |
Name |
Description |
System.String |
query |
|
Returns
QueryCellInfo(String)
Triggered every time a request is made to access cell information, element, or data.
This will be triggered before the cell element is appended to the TreeGrid element.
Declaration
public TreeGridBuilder QueryCellInfo(string queryCellInfo)
Parameters
Type |
Name |
Description |
System.String |
queryCellInfo |
|
Returns
RecordDoubleClick(String)
Triggers when record is double clicked.
Declaration
public TreeGridBuilder RecordDoubleClick(string recordDoubleClick)
Parameters
Type |
Name |
Description |
System.String |
recordDoubleClick |
|
Returns
Render()
Declaration
public HtmlString Render()
Returns
Type |
Description |
Microsoft.AspNetCore.Html.HtmlString |
|
ResizeStart(String)
Triggers when column resize starts.
Declaration
public TreeGridBuilder ResizeStart(string resizeStart)
Parameters
Type |
Name |
Description |
System.String |
resizeStart |
|
Returns
ResizeStop(String)
Triggers when column resize ends.
Declaration
public TreeGridBuilder ResizeStop(string resizeStop)
Parameters
Type |
Name |
Description |
System.String |
resizeStop |
|
Returns
Resizing(String)
Triggers on column resizing.
Declaration
public TreeGridBuilder Resizing(string resizing)
Parameters
Type |
Name |
Description |
System.String |
resizing |
|
Returns
RowDataBound(String)
Triggered every time a request is made to access row information, element, or data.
This will be triggered before the row element is appended to the TreeGrid element.
Declaration
public TreeGridBuilder RowDataBound(string rowDataBound)
Parameters
Type |
Name |
Description |
System.String |
rowDataBound |
|
Returns
RowDeselected(String)
Triggers when a selected row is deselected.
Declaration
public TreeGridBuilder RowDeselected(string rowDeselected)
Parameters
Type |
Name |
Description |
System.String |
rowDeselected |
|
Returns
RowDeselecting(String)
Triggers before deselecting the selected row.
Declaration
public TreeGridBuilder RowDeselecting(string rowDeselecting)
Parameters
Type |
Name |
Description |
System.String |
rowDeselecting |
|
Returns
RowDrag(String)
Triggers when row elements are dragged (moved) continuously.
Declaration
public TreeGridBuilder RowDrag(string rowDrag)
Parameters
Type |
Name |
Description |
System.String |
rowDrag |
|
Returns
RowDragStart(String)
Triggers when row element’s drag(move) starts.
Declaration
public TreeGridBuilder RowDragStart(string rowDragStart)
Parameters
Type |
Name |
Description |
System.String |
rowDragStart |
|
Returns
RowDragStartHelper(String)
Triggers when row element’s before drag(move).
Declaration
public TreeGridBuilder RowDragStartHelper(string rowDragStartHelper)
Parameters
Type |
Name |
Description |
System.String |
rowDragStartHelper |
|
Returns
RowDrop(String)
Triggers when row elements are dropped on the target row.
Declaration
public TreeGridBuilder RowDrop(string rowDrop)
Parameters
Type |
Name |
Description |
System.String |
rowDrop |
|
Returns
RowDropSettings(TreeGridRowDropSettings)
Configures the row drop settings of the TreeGrid.
Declaration
public TreeGridBuilder RowDropSettings(TreeGridRowDropSettings rowDropSettings)
Parameters
Returns
RowDropSettings(Action<TreeGridRowDropSettingsBuilder>)
Declaration
public TreeGridBuilder RowDropSettings(Action<TreeGridRowDropSettingsBuilder> rowDropSettings)
Parameters
Returns
RowHeight(Double)
Defines the height of TreeGrid rows.
Declaration
public TreeGridBuilder RowHeight(double rowHeight)
Parameters
Type |
Name |
Description |
System.Double |
rowHeight |
|
Returns
RowSelected(String)
Triggers after a row is selected.
Declaration
public TreeGridBuilder RowSelected(string rowSelected)
Parameters
Type |
Name |
Description |
System.String |
rowSelected |
|
Returns
RowSelecting(String)
Triggers before row selection occurs.
Declaration
public TreeGridBuilder RowSelecting(string rowSelecting)
Parameters
Type |
Name |
Description |
System.String |
rowSelecting |
|
Returns
RowTemplate(String)
The row template that renders customized rows from the given template.
By default, TreeGrid renders a table row for every data source item.
It accepts either template string
or HTML element ID.
The row template must be a table row.
Declaration
public TreeGridBuilder RowTemplate(string rowTemplate)
Parameters
Type |
Name |
Description |
System.String |
rowTemplate |
|
Returns
SearchSettings(TreeGridSearchSettings)
Configures the search settings of the TreeGrid.
Declaration
public TreeGridBuilder SearchSettings(TreeGridSearchSettings searchSettings)
Parameters
Returns
SearchSettings(Action<TreeGridSearchSettingsBuilder>)
Declaration
public TreeGridBuilder SearchSettings(Action<TreeGridSearchSettingsBuilder> searchSettings)
Parameters
Returns
SelectedRowIndex(Double)
The selectedRowIndex
allows you to select a row at initial rendering.
You can also get the currently selected row index.
Declaration
public TreeGridBuilder SelectedRowIndex(double selectedRowIndex)
Parameters
Type |
Name |
Description |
System.Double |
selectedRowIndex |
|
Returns
SelectionSettings(TreeGridSelectionSettings)
Configures the selection settings.
Declaration
public TreeGridBuilder SelectionSettings(TreeGridSelectionSettings selectionSettings)
Parameters
Returns
SelectionSettings(Action<TreeGridSelectionSettingsBuilder>)
Declaration
public TreeGridBuilder SelectionSettings(Action<TreeGridSelectionSettingsBuilder> selectionSettings)
Parameters
Returns
ShowColumnChooser(Boolean)
If showColumnChooser
is set to true, it allows you to dynamically show or hide columns.
Declaration
public TreeGridBuilder ShowColumnChooser(bool showColumnChooser = true)
Parameters
Type |
Name |
Description |
System.Boolean |
showColumnChooser |
|
Returns
ShowColumnMenu(Boolean)
If showColumnMenu
set to true, then it will enable the column menu options in each columns.
Declaration
public TreeGridBuilder ShowColumnMenu(bool showColumnMenu = true)
Parameters
Type |
Name |
Description |
System.Boolean |
showColumnMenu |
|
Returns
SortSettings(TreeGridSortSettings)
Configures the sort settings of the TreeGrid.
Declaration
public TreeGridBuilder SortSettings(TreeGridSortSettings sortSettings)
Parameters
Returns
SortSettings(Action<TreeGridSortSettingsBuilder>)
Declaration
public TreeGridBuilder SortSettings(Action<TreeGridSortSettingsBuilder> sortSettings)
Parameters
Returns
TextWrapSettings(TreeGridTextWrapSettings)
Configures the text wrap in the TreeGrid.
Declaration
public TreeGridBuilder TextWrapSettings(TreeGridTextWrapSettings textWrapSettings)
Parameters
Returns
TextWrapSettings(Action<TreeGridTextWrapSettingsBuilder>)
Declaration
public TreeGridBuilder TextWrapSettings(Action<TreeGridTextWrapSettingsBuilder> textWrapSettings)
Parameters
Returns
toolbar
defines the ToolBar items of the TreeGrid.
It contains built-in and custom toolbar items.
If a string value is assigned to the toolbar
option, it is considered as the template for the whole TreeGrid ToolBar.
If an array value is assigned, it is considered as the list of built-in and custom toolbar items in the TreeGrid's Toolbar.
The following code example implements the custom toolbar items.
Declaration
public TreeGridBuilder Toolbar(object toolbar)
Parameters
Type |
Name |
Description |
System.Object |
toolbar |
|
Returns
Triggers when toolbar item is clicked.
Declaration
public TreeGridBuilder ToolbarClick(string toolbarClick)
Parameters
Type |
Name |
Description |
System.String |
toolbarClick |
|
Returns
TreeColumnIndex(Double)
Specifies the index of the column that needs to have the expander button.
Declaration
public TreeGridBuilder TreeColumnIndex(double treeColumnIndex)
Parameters
Type |
Name |
Description |
System.Double |
treeColumnIndex |
|
Returns
Width(Double)
Defines the TreeGrid width.
Declaration
public TreeGridBuilder Width(double width)
Parameters
Type |
Name |
Description |
System.Double |
width |
|
Returns
Width(String)
Defines the TreeGrid width.
Declaration
public TreeGridBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns