Class PivotViewHyperlinkSettings
Allow a set of options to display a hyperlink to link data for individual cells that are shown in the pivot table.
These options allow enabling a separate hyperlink for row headers, column headers, value cells, and summary cells in the HyperlinkSettings class.
The options available are:
ShowHyperlink: Allows setting the visibility of hyperlink in all cells.
ShowRowHeaderHyperlink: Allows setting the visibility of hyperlink in row headers.
ShowColumnHeaderHyperlink: Allows setting the visibility of hyperlink in column headers.
ShowValueCellHyperlink: Allows setting the visibility of hyperlink in value cells.
ShowSummaryCellHyperlink: Allows setting the visibility of hyperlink in summary cells.
HeaderText: Allows setting the visibility of hyperlink based on header text.
ConditionalSettings: Allows setting the visibility of hyperlink based on specific condition.
CssClass: Allows adding CSS class name to the hyperlink options.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.PivotView
Assembly: Syncfusion.Blazor.dll
Syntax
public class PivotViewHyperlinkSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
PivotViewHyperlinkSettings()
Declaration
public PivotViewHyperlinkSettings()
Properties
ConditionalSettings
Gets or sets options to show or hide a hyperlink based on a condition. The options are:
Measure: Sets the value field caption to apply visibility for a specific measure.
Condition: Sets the operator, such as Equals, GreaterThan, LessThan, Between, or NotBetween.
Value1: Sets the start value.
Value2: Sets the end value. Used when the operator is Between or NotBetween.
Declaration
[Parameter]
[JsonPropertyName("conditionalSettings")]
public List<PivotViewConditionalSetting> ConditionalSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| List<PivotViewConditionalSetting> | A List<T> of PivotViewConditionalSetting entries that define hyperlink visibility rules. The default value is an empty collection. |
Remarks
Applies to hyperlink cells configured in PivotViewHyperlinkSettings.
Each rule checks the measure and the condition against provided values and then shows or hides the hyperlink.
Use an empty collection to clear all rules.
Examples
The following example demonstrates how to use the ConditionalSettings property:
<SfPivotView TValue="ProductDetails">
<PivotViewDataSourceSettings DataSource="@data" ExpandAll="true">
....
</PivotViewDataSourceSettings>
<PivotViewHyperlinkSettings>
<PivotViewConditionalSettings>
<PivotViewConditionalSetting Measure="Sold" Conditions=Condition.Between Value1="100" Value2="200"></PivotViewConditionalSetting>
</PivotViewConditionalSettings>
</PivotViewHyperlinkSettings>
</SfPivotView>
See Also
CssClass
Adds a CSS class name to hyperlink options. Class name enables easy style application to a hyperlink in the Pivot Table.
Declaration
[Parameter]
[JsonPropertyName("cssClass")]
public string CssClass { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string specifying a CSS class name applied to hyperlink options. The default value is |
Remarks
Multiple class names separated by spaces are supported.
Class name renders on hyperlink elements in cells with hyperlink.
Use with PivotViewHyperlinkSettings and ConditionalSettings to control where hyperlink appears.
Examples
The following example demonstrates how to use the CssClass property:
<SfPivotView TValue="ProductDetails">
<PivotViewDataSourceSettings DataSource="@data" ExpandAll="true">
....
</PivotViewDataSourceSettings>
<PivotViewHyperlinkSettings CssClass="e-custom-class">
<PivotViewConditionalSettings>
<PivotViewConditionalSetting Measure="Sold" Conditions=Condition.Between Value1="100" Value2="200"></PivotViewConditionalSetting>
</PivotViewConditionalSettings>
</PivotViewHyperlinkSettings>
</SfPivotView>
<style>
.e-custom-class:hover {
color: red !important;
}
</style>
HeaderText
Gets or sets header text used to control hyperlink visibility in cells for a specific row or column header. Uses HeaderText to enable hyperlinks only for matching headers. Configuration occurs in code-behind during initial rendering.
Declaration
[Parameter]
[JsonPropertyName("headerText")]
public string HeaderText { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string specifying the header text for hyperlink filtering. The default value is |
Remarks
Applies to row headers and column headers in PivotViewHyperlinkSettings.
Example behavior: value FY 2015 limits hyperlinks to cells matching the FY 2015 header combination.
Use an empty string to disable header-based hyperlink filtering.
Examples
The following example demonstrates how to use the HeaderText property:
<SfPivotView TValue="ProductDetails">
<PivotViewDataSourceSettings DataSource="@data">
....
</PivotViewDataSourceSettings>
<PivotViewHyperlinkSettings HeaderText="FY 2015" CssClass="e-custom-class"></PivotViewHyperlinkSettings>
</SfPivotView>
<style>
.e-custom-class:hover {
color: red !important;
}
</style>
ShowColumnHeaderHyperlink
Allows setting the visibility of hyperlink in column headers that are currently shown in the pivot table.The Pivot Table provides an option to display hyperlinks specifically in column header cells that are currently visible. To enable this functionality, set the ShowColumnHeaderHyperlink property to true within the PivotViewHyperlinkSettings class. This ensures that only the column headers will display hyperlinks, while other cell types remain unaffected.
Declaration
[Parameter]
[JsonPropertyName("showColumnHeaderHyperlink")]
public bool ShowColumnHeaderHyperlink { get; set; }
Property Value
| Type |
|---|
| bool |
Examples
The following example demonstrates how to use the ShowColumnHeaderHyperlink property:
<SfPivotView TValue="ProductDetails">
<PivotViewDataSourceSettings DataSource="@data">
....
</PivotViewDataSourceSettings>
<PivotViewHyperlinkSettings ShowColumnHeaderHyperlink="true"></PivotViewHyperlinkSettings>
</SfPivotView>
See Also
ShowHyperlink
Gets or sets a flag to show hyperlinks in all cells that are currently visible in the Pivot Table. Enable by setting ShowHyperlink to true in PivotViewHyperlinkSettings. When enabled, hyperlinks appear in row headers, column headers, value cells, and summary cells.
Declaration
[Parameter]
[JsonPropertyName("showHyperlink")]
public bool ShowHyperlink { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A bool indicating visibility for hyperlinks in all visible cells. The default value is false. |
Remarks
Scope: all cells visible in the current view.
Interaction: HeaderText and ConditionalSettings can limit hyperlink creation to specific headers or value ranges.
Use false to hide hyperlinks for all visible cells.
Examples
The following example demonstrates how to use the ShowHyperlink property:
<SfPivotView TValue="ProductDetails" ShowFieldList="true">
<PivotViewDataSourceSettings DataSource="@data">
....
</PivotViewDataSourceSettings>
<PivotViewHyperlinkSettings ShowHyperlink="true">
</PivotViewHyperlinkSettings>
</SfPivotView>
See Also
ShowRowHeaderHyperlink
Gets or sets a flag to show hyperlinks only in row header cells that are currently visible in the Pivot Table. Enable by setting ShowRowHeaderHyperlink to true in PivotViewHyperlinkSettings. Only row headers display hyperlinks; other cell types remain unchanged.
Declaration
[Parameter]
[JsonPropertyName("showRowHeaderHyperlink")]
public bool ShowRowHeaderHyperlink { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A bool indicating visibility for hyperlinks in visible row header cells. The default value is false. |
Remarks
Scope: row header cells only.
Use together with ShowHyperlink to control full-table visibility or with HeaderText and ConditionalSettings to limit hyperlink creation by header text or value range.
Set to false to hide hyperlinks in row header cells.
Examples
The following example demonstrates how to use the ShowRowHeaderHyperlink property:
<SfPivotView TValue="ProductDetails">
<PivotViewDataSourceSettings DataSource="@data">
....
</PivotViewDataSourceSettings>
<PivotViewHyperlinkSettings ShowRowHeaderHyperlink="true"></PivotViewHyperlinkSettings>
</SfPivotView>
See Also
ShowSummaryCellHyperlink
Shows hyperlinks only in summary cells that are visible in the Pivot Table. Set ShowSummaryCellHyperlink to true in PivotViewHyperlinkSettings to enable. Summary cells show hyperlinks; all other cells do not.
Declaration
[Parameter]
[JsonPropertyName("showSummaryCellHyperlink")]
public bool ShowSummaryCellHyperlink { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A bool that turns hyperlink display on or off for summary cells. The default value is false. |
Remarks
Scope: summary cells only.
Use with ShowHyperlink for full-table links, or use HeaderText and ConditionalSettings to limit where links appear.
Set to false to hide hyperlinks in summary cells.
Examples
The following example demonstrates how to use the ShowSummaryCellHyperlink property:
<SfPivotView TValue="ProductDetails">
<PivotViewDataSourceSettings DataSource="@data">
....
</PivotViewDataSourceSettings>
<PivotViewHyperlinkSettings ShowSummaryCellHyperlink="true" CssClass="e-custom-class">
</PivotViewHyperlinkSettings>
</SfPivotView>
ShowValueCellHyperlink
Shows hyperlinks only in value cells that are visible in the Pivot Table. Set ShowValueCellHyperlink to true in PivotViewHyperlinkSettings to enable. Only value cells show hyperlinks; other cells stay the same.
Declaration
[Parameter]
[JsonPropertyName("showValueCellHyperlink")]
public bool ShowValueCellHyperlink { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A bool that controls hyperlink visibility for value cells. The default value is false. |
Remarks
Scope: value cells only.
Use with ShowHyperlink for links in all cells. Limit by header text with HeaderText or by value range with ConditionalSettings.
Set to false to hide hyperlinks in value cells.
Examples
The following example demonstrates how to use the ShowValueCellHyperlink property:
<SfPivotView TValue="ProductDetails">
<PivotViewDataSourceSettings DataSource="@data" ExpandAll="true">
....
</PivotViewDataSourceSettings>
<PivotViewHyperlinkSettings ShowValueCellHyperlink="true">
</PivotViewHyperlinkSettings>
</SfPivotView>
See Also
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
Dispose()
Dispose the unmanaged resources.
Declaration
public virtual void Dispose()
Dispose(bool)
Dispose unmanaged resources in the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Boolean value to dispose the object. |
Overrides
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
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. |