Category / Section
How to display the hierarchy name in the SplitButton of an AxisElementBuilder?
1 min read
You can display the hierarchy name instead of the dimension name in the SplitButton inside the AxisElementBuilder by using the AxisItemDisplayMode dependency property of the OLAP Client.
C#
public partial class MainPage : UserControl { public MainPage() { //Initializes the control InitializeComponent(); …… …… //Sets the name to be selected as Display Name for the SplitButton this.olapClient.AxisItemDisplayMode = Syncfusion.Silverlight.Tools.Olap.SplitButtonDisplayMode.WithHierarchyCaption; } }
VB
Partial Public Class MainPage Inherits UserControl Public Sub New() ‘Initializes the control InitializeComponent() ‘Sets the name to be selected as Display Name for the SplitButton Me.olapClient.AxisItemDisplayMode = Syncfusion.Silverlight.Tools.Olap.SplitButtonDisplayMode.WithHierarchyCaption End Sub End Class