Articles in this section
Category / Section

How to hide the MDX Query Button from OlapClient Tool Bar

1 min read

The MDX query button visibility has been collapsed using the below code snippet.



OlapToolBarButton btnShowMdx;

for (int i = 0; i < this.OlapClient.OlapClientToolBar.Items.Count; i++)


  if (this.OlapClient.OlapClientToolBar.Items[i] is OlapToolBarButton)


    btnShowMdx = this.OlapClient.OlapClientToolBar.Items[i] as OlapToolBarButton;


    if (btnShowMdx.Name == "PART_ShowMdx")


       btnShowMdx.Visibility = Visibility.Collapsed;








Figure: OlapClient ToolBar with Collapsed MDX Query Button


Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment