Category / Section
How to add custom toolbar button in OLAP Client?
1 min read
You can add custom toolbar button in OLAP Client using the following code example.
C#
this.OlapClient1.OlapClientToolBar.Controls.Clear(); this.OlapClient1.OlapClientToolBar.Controls.Add(new Button() {Height = 20, Width = 60, Text = "text"}); this.OlapClient1.OlapClientToolBar.Controls.Add(new Button() { Height = 20, Width = 60, Text = "text" }); this.OlapClient1.OlapClientToolBar.Controls.Add(new DropDownList() { Height = 20, Width = 60, Text = "test", Items = { "test", "test1" } });
VB
Me.OlapClient1.OlapClientToolBar.Controls.Clear() Me.OlapClient1.OlapClientToolBar.Controls.Add(New Button() With {.Height = 20, .Width = 60, .Text = "text"}) Me.OlapClient1.OlapClientToolBar.Controls.Add(New Button() With {.Height = 20, .Width = 60, .Text = "text"}) Me.OlapClient1.OlapClientToolBar.Controls.Add(New DropDownList() With {.Height = 20, .Width = 60, .Text = "test", .Items = { "test", "test1" }})